一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

GitLab 7 SMTP 配置步骤详解

时间:2022-06-30 21:08:05 编辑:袖梨 来源:一聚教程网

本配置文档适用 GitLab 7 (Omnibus)

1、安装参考

https://about.gitlab.com/downloads/

2、下载gitlab-ce

https://packages.gitlab.com/gitlab/gitlab-ce

sudo dpkg -i gitlab-ce_7.12.2.deb

sudo gitlab-ctl reconfigure

3、邮件配置参考

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md

https://elijahpaul.co.uk/using-an-smtp-server-with-gitlab/

4、编辑配置/etc/gitlab/gitlab.rb

external_url 'http://gitlab.test.com'

gitlab_rails['gitlab_email_from'] = '[email protected]'

gitlab_rails['gitlab_email_reply_to'] = [email protected]'

gitlab_rails['smtp_enable'] = true

gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"

gitlab_rails['smtp_port'] = 25

gitlab_rails['smtp_user_name'] = "[email protected]"

gitlab_rails['smtp_password'] = "test123"

gitlab_rails['smtp_domain'] = "smtp.qq.com"

gitlab_rails['smtp_authentication'] = "login"

gitlab_rails['smtp_enable_starttls_auto'] = false

user['git_user_name'] = [email protected]

5、重新加载配置

gitlab-ctl reconfigure

6、重新启动gitlab(可以不用执行)

gitlab-ctl restart

热门栏目