临时已解决:
gitlab.rb 配置文件中添加以下配置
- external_url 'https://git.xxxx.com:1333'
- letsencrypt['enable'] = false
- nginx['redirect_http_to_https'] = true
- registry_nginx['redirect_http_to_https'] = true
- mattermost_nginx['redirect_http_to_https'] = true
- nginx['redirect_http_to_https_port'] = 1333
- nginx['listen_port'] = 80
- nginx['listen_https'] = true
复制代码
缺陷就是域名后面必须添加端口号,我不知道如何将端口号去掉,可以继续寻求帮助吗? |