群晖部署私有Gitlab(配置https、mail)
配置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'不能同时开启,否则报错。
版权申明
本文系作者 @K.Fire 原创发布在K.Fire's Blog站点。未经许可,禁止转载。
暂无评论数据