2016-11-11 7 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