Close merge request redirects to internal IP address

Hello there.

I have a Gitlab installation in Docker, with a NGINX reverse proxy, using https through a domain and Letsencrypt.
It’s working perfectly, everybody can push, clone, etc, using our external domain, https, etc.

However, when I or another Master press Close merge request, it redirects to the internal IP address, keeping the https protocol.

Internal IP:

If I press Close merge request, redirects to[state_event]=close

I could successfuly approve the merge, but cannot close it…

I don’t have configured in no configuration file the internal IP, I have the external url configured in gitlab.rb, with the external_url and ci_external_url entries, I’ve tried many nginx settings, but right now I have these in gitlab.rb:

nginx[‘ssl_offloaded’] = true
nginx[‘proxy_set_headers’] = {
“X-Forwarded-Proto” => “https”,
“X-Forwarded-Ssl” => “on”

Any hint on what can I do to solve this issue?
Thanks a lot