Different external_url and port not working
Created by: thextra
When using chef coming with the latest GitLab package (gitlab_6.9.0-omnibus-1_amd64.deb) changing of listening port and external_url came into conflict.
I've tried, after successful installation, to change the port GitLab is listening on to something else then port 80 and change the external_url to a subdomain with port 80 (requests will be handled by a proxy).
My /etc/gitlab/gitlab.rb looks like that:
external_url "http://git.example.com"
gitlab_rails['gitlab_port'] = 8001
But GitLab will continue listening on port 80 anyway.
If you only use external_url like external_url "http://git.example.com:8001"
GitLab will listen on port 8001 but also will add :8001 to all URLs (which is not desired).