2016-11-11 4 views
1

매니페스트의 UAA_CONFIG_YAML 섹션에서 SMTP 설정을 설정하려고합니다.UAA_CONFIG_YAML 환경 변수 내의 자리 표시 자

smtp: 
    host: ${vcap.services.smtpdev.credentials.hostname:localhost} 
    port: 2525 
    user: ${vcap.services.smtpdev.credentials.username:user} 
    password: ${vcap.services.smtpdev.credentials.password:password} 

로컬 호스트의 기본값이 선택되지 않았습니다. 유효하지 않은 자리 표시자를 제공하면 오류가 발생합니다.

답변

0
The way I have done it, I have set the UAA_CONFIG_PATH environment variable which points to the location of the yaml file. 
The settings are provided as follows: 
smtp: 
    host: smtp.gmail.com 
    port: <port_number> 
    auth: true 
    starttls.enable: false 
    user: <username> 
    password: <password> 

These values are getting picked up by uaa. 
Please let me know if it was helpful. 
+0

그래도 자격 증명이 소스 코드에 있습니다. 그것은 환경에서 바인딩 서비스에서 자격 증명을 얻을 수 있어야하지만 분명히 아닙니다. – miclip