码迷,mamicode.com
首页 > 其他好文 > 详细

GitLab 安装、配置和维护

时间:2020-07-06 10:39:14      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:rest   smt   use   address   维护   ttl   you   figure   add   

邮箱配置

vi /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure

示例 1

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.server"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "smtp user"
gitlab_rails[‘smtp_password‘] = "smtp password"
gitlab_rails[‘smtp_domain‘] = "example.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_openssl_verify_mode‘] = ‘peer‘
# If your SMTP server does not like the default ‘From: gitlab@localhost‘ you
# can change the ‘From‘ with this setting.
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@example.com‘
gitlab_rails[‘gitlab_email_reply_to‘] = ‘noreply@example.com‘

示例 2

gitlab_rails[‘gitlab_email_enabled‘] = true
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@recloud.cc‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.ym.163.com"
gitlab_rails[‘smtp_port‘] = 25
gitlab_rails[‘smtp_user_name‘] = "gitlab@recloud.cc"
gitlab_rails[‘smtp_password‘] = "7XNcwLeQJE"
gitlab_rails[‘smtp_domain‘] = "recloud.cc"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = false

维护

gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl status

GitLab 安装、配置和维护

标签:rest   smt   use   address   维护   ttl   you   figure   add   

原文地址:https://www.cnblogs.com/nehcdahc/p/13253386.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!