Disable redirect internal ip with https enabled

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

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.