HTTP => HTTPS redirection when HTTPS port is different than 443
Hello
i set up gitlab omnibus on my server and made https using a different https port than 443 because im running an apache server too. I set up https redirection according to the manual etc. But when i analyze the HTTP traffic when connecting to my server i get a HTTP request 301 to https://myserverip:/url. And that colon is really there (without a port substituted) so i guess theres a mistake here.
So i looked a bit inside gitlab and found line 49 in omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb
should'nt this be @listen_port instead of @port? I changed this in my local installation and suddenly redirection worked for me.