gitlab之邮箱配置

时间:2024-01-16 15:49:20

一、gitlab配置邮件通知功能

编辑/etc/gitlab/gitlab.rb 文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#配置如下
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'admin@nideyuan.com'
gitlab_rails['gitlab_email_display_name'] = 'admin'
gitlab_rails['gitlab_email_reply_to'] = 'noreply@nideyuan.com'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "admin@nideyuan.com"
gitlab_rails['smtp_password'] = "密码"
gitlab_rails['smtp_domain'] = "nideyuan.com"
gitlab_rails['smtp_authentication'] = "login"

保存退出后,重新执行 gitlab-ctl reconfigure