Disable redirect internal ip with https enabled

i have local ip and public ported ip
local ip =
public ip= like
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 ‘’
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

No Community :zipper_mouth_face::confused:

You will need to setup another nginx atop gitlab so if will expose it to external IP and proxy pass as the internal IP and thus avoid the redirection. We used that setup for 2 URL one internal and one PUBLIC IP.