Edge for Private Cloud v4.18.01
כדי להשתמש ב-Apigee BaaS צריך להגדיר שרת SMTP. כשמתקינים את Apigee BaaS API Backend Stack, מזינים את פרטי ה-SMTP, כולל הסיסמה של משתמש ה-SMTP. הסיסמה הזו מוצפנת לפני שהיא נשמרת.
אם בהמשך תרצו לשנות את פרטי ה-SMTP, תצטרכו לערוך את /opt/apigee/customer/application/usergrid.properties בכל הצמתים של BaaS Stack.
כדי להצפין סיסמה חדשה ולהגדיר אותה ב-usergrid.properties, משתמשים בכלי apigee-service:
> /opt/apigee/apigee-service/bin/apigee-service baas-usergrid newPword
כדי לשנות את פרטי ה-SMTP:
- פותחים את הקובץ /opt/apigee/customer/application/usergrid.properties בכלי לעריכת קוד. אם הקובץ לא קיים, יוצרים אותו.
- מגדירים את המאפיינים הבאים לפי הצורך:
# SMTP Properties
usergrid-deployment_mail.smtp.host=smtp.gmail.com
usergrid-deployment_mail.smtp.port=465
usergrid-deployment_mail.smtp.auth=true
usergrid-deployment_mail.smtp.username=your@email.com
usergrid-deployment_mail.smtp.password=SECURE:74c57edacd3242f0ba1b1413890e17c22a5
usergrid-deployment_mail.smtp.quitwait=false
# SMTPS Properties
usergrid-deployment_mail.smtps.host=smtp.gmail.com
usergrid-deployment_mail.smtps.port=465
usergrid-deployment_mail.smtps.auth=true
usergrid-deployment_mail.smtps.username=your@email.com
usergrid-deployment_mail.smtps.password=SECURE:74c57edacd3242f0ba1b1413890e17c22a52
usergrid-deployment_mail.smtps.quitwait=false - אחרי שמשנים את המידע הזה, צריך להפעיל מחדש את API Backend Stack באמצעות הפקודה:
> /opt/apigee/apigee-service/bin/apigee-service baas-usergrid restart - חוזרים על הפעולה בכל הצמתים של API BaaS Stack.