gitlab电子邮件设置 [英] gitlab email setup
本文介绍了gitlab电子邮件设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,gitlab具有 gitlab.yml
中的下一个配置:
By default gitlab has the next configuration in gitlab.yml
:
email:
from: notify@gitlabhq.com
host: gitlabhq.com
但是,我需要指定其他变量(主机,端口,用户,密码等)以使用其他邮件服务器。
but, I need to specify other variables (host, port, user, password, etc) to use another mail server.
我该怎么做?
推荐答案
这让我感到困惑。但要更改邮件设置,请在config / environments / production.rb中编辑它们。只需像常规Rails应用程序那样添加config.action_mailer.smtp_settings即可。
This confused me too. But to change the mail setting you edit them in config/environments/production.rb Just add a config.action_mailer.smtp_settings like a regular rails app.
这篇关于gitlab电子邮件设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文