首页 > 其他 > 详细

Gitlab7.8.x 配置邮件功能

时间:2015-04-14 16:41:44      阅读:296      评论:0      收藏:0      [点我收藏+]
第一步:更改配置文件
chuck@ubuntu:/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializers$ cp smtp_settings.rb.sample smtp_settings.rb
chuck@ubuntu:/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializers$ vi smtp_settings.rb
# To enable smtp email delivery for your GitLab instance do the following:
# To enable smtp email delivery for your GitLab instance do the following:
# 1. Rename this file to smtp_settings.rb
# 2. Edit settings inside this file
# 3. Restart GitLab instance
#
if Rails.env.production?
  Gitlab::Application.config.action_mailer.delivery_method = :smtp

  ActionMailer::Base.smtp_settings = {
    address: "smtp.163.com",
    port: 25,
    user_name: "user_name",
    password: "password",
    domain: "163.com",
    authentication: :plain,
    enable_starttls_auto: true,
#  openssl_verify_mode: ‘none‘    //注释掉这行
  }
end
第二步:重启gitlab
chuck@ubuntu:/opt/gitlab-7.8.1-0$ sudo ./ctlscript.sh restart

Gitlab7.8.x 配置邮件功能

原文:http://blog.csdn.net/zqdlove/article/details/45042751

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!