Hello,
i have local ip and public ported ip
local ip =192.168.22.20
public ip= like 1.1.1.1:2222
when connect to public ip it’s redirect to local ip
so how to prevent from redirect with http to https
changes i make in /etc/gitlab/gitlab.rb:
external_url ‘192.168.22.20’
nginx[‘enable’] = true
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 443
nginx[‘ssl_certificate_key’] = “/etc/gitlab/trusted-certs/key.pem”
nginx[‘ssl_certificate’] = “/etc/gitlab/trusted-certs/cert.pem”
nginx[‘http2_enabled’] = true
Best regrads