gitlab————邮件提醒

一、安装gitlab
参考博文部署Jenkins+Gitlab实现持续集成,进行到3、远端库的基本操作之上即可
二、邮件验证注册
邮件提醒可用来注册用户时需要邮件进行验证,当gitlab上传代码或下载时也会提醒

[root@gitlab /]# vim /etc/gitlab/gitlab.rb
..................
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "wbwkirmyqzmzbfcf"              # 此处填写的是qq邮箱的登录授权码,可根据下方图片查看
gitlab_rails['smtp_domain'] = "qq.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
..................
user['git_user_email'] = "[email protected]"
..................
gitlab_rails['gitlab_email_from'] = '[email protected]'
[root@gitlab /]# gitlab-ctl reconfigure                # 重新配置
[root@gitlab /]# gitlab-ctl restart           # 重启服务使之生效

查看邮箱登录授权码
gitlab————邮件提醒_第1张图片

你可能感兴趣的:(自动注册,gitlab,邮件注册)