To enable some balancing for gitlab, we put it behing haproxy.
But as we have a service running https alongside, we choosed to use an alternative https port
Connexion works fine, but all links insite gitlab keep the scheme but forget the port.
Our haproxy configuration :
frontend front-gitlab
bind *:4443 ssl crt REDACTED
mode http
default_backend back-gitlab
backend back-gitlab
mode http
option tcp-check
http-request add-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Port %[dst_port]
option forwardfor
server gitlab 127.0.0.1:80 maxconn 32
and our external_url on gitlab is keept native (http://gitlab.domain.tld/)
if we access by https://gitlab.domain.tld:4443/, all repository files link forget the :4443 ans becomes simple https://gitlab.comain.tld/
any clue ?
Thaks.