我是设置Gitlab的新手。
我已使用VSHN puppet模块在AWS中安装Gitlab。
Gitlab服务器运行正常,但电子邮件邀请对任何人都不起作用。
我在site.pp文件中使用了以下配置。
node 'client-ip-address' {
class { 'gitlab':
external_url => 'http://client-ip-address',
}
}
有人可以告诉我设置电子邮件通知需要哪些配置吗?
答案 0 :(得分:1)
根据您的电子邮件方式,它将使用此处记录的gitlab rails选项配置进行配置:https://github.com/vshn/puppet-gitlab/blob/master/README.md#usage
有关各种电子邮件提供商示例的文档:https://docs.gitlab.com/omnibus/settings/smtp.html#example-configuration
例如,最基本的一个:
class { 'gitlab':
external_url => 'http://gitlab.mydomain.tld',
gitlab_rails => {
'smtp_enable' => true,
},
}
对于gmail:
class { 'gitlab':
external_url => 'http://gitlab.mydomain.tld',
gitlab_rails => {
'smtp_address' => "smtp.gmail.com"
'smtp_port' => 587
'smtp_user_name' => "my.email@gmail.com"
'smtp_password' => "my-gmail-password"
'smtp_domain' => "smtp.gmail.com"
'smtp_authentication' => "login"
'smtp_enable_starttls_auto' => true
'smtp_tls' => false
'smtp_openssl_verify_mode' => 'peer'
},
}