Hi,
I am having trouble changing the port of a local instillation of gitlab. There seems to be inconsistencies in gitlab changing it. Its lke there is no one canonical place to define it.
I have tried in /etc/gitlab/gitlab.rb :-
external_url 'http://zzz.org:8080'
And :-
external_url 'http://zzz.org'
external_port '8080'
And :-
external_url 'http://zzz.org:8080'
external_port '8080'
And :-
external_url 'http://zzz.org'
gitlab_rails['gitlab_port'] = 8080
And :-
external_url 'http://zzz.org:8080'
gitlab_rails['gitlab_port'] = 8080
each followed by :-
sudo gitlab-ctl reconfigure
And I am getting a 502 :-
Whoops, GitLab is taking too much time to respond.
The solution that seems to work is :-
external_url 'http://zzz.org'
external_port '8080'
gitlab_rails['gitlab_port'] = 8080
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
otherwise gitlab seems to run on both 80 and 8080 and conflicts with Apache
I do not have the time to look at the code and I don’t really know Ruby, but this does seem to be an inconsistent area.
Regards,
Aaron