logo

配置https

修改/etc/gitlab/gitlab.rb

external_url='https://192.168.0.87:8443'
letsencrypt['enable'] = false
nginx['redirect_http_to_https'] =true
nginx['redirect_http_to_https_port'] = 80
nginx['ssl_certificate'] = "/etc/gitlab/ssl/server.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/server.key"
nginx['listen_port'] = 443

配置发件邮箱

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.kfi.re"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "no-reply@kfi.re"
gitlab_rails['smtp_password'] = "******"
gitlab_rails['smtp_domain'] = "mail.kfi.re"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = true
gitlab_rails['smtp_pool'] = false

gitlab_rails['gitlab_email_enabled'] = true

gitlab_rails['gitlab_email_from'] = 'no-reply@kfi.re' 

gitlab_rails['gitlab_email_display_name'] = 'no-reply'

'smtp_tls'和'smtp_enable_starttls_auto'不能同时开启,否则报错

分类: 运维 标签: 暂无标签

评论

目录