Haproxy and Gitlab

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.

about the port, we solved it but putting the full link in external url and 80 in nginx port.
so thanks for thos who read the post and i post the answer for those who may have the problem