discourse的域名配置和发送邮件设置-app.yml

discourse的域名配置和发送邮件设置-app.yml

修改 app.yml 文件
(位置在/var/discourse/containers中)

设置 DISCOURSE_HOSTNAME 参数为自有域名,如:talk.example.com
DISCOURSE_DEVELOPER_EMAILS: ‘admin@example.com’
DISCOURSE_SMTP_ADDRESS: smtp.example.com
DISCOURSE_SMTP_PORT: 25
DISCOURSE_SMTP_USER_NAME: admin@example.com
DISCOURSE_SMTP_PASSWORD: “12345678”
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)

修改以上设置后,需要先运行
/var/discourse/launcher destroy app
再运行
/var/discourse/launcher start app