Changing the port in /etc/gitlab/gitlab.rb breaks profile image src attributes
Closed
Changing the port in /etc/gitlab/gitlab.rb breaks profile image src attributes
Created by: clayheaton
Note: This is on Ubuntu 14.04 using the package download and installed as described here: https://about.gitlab.com/downloads/
I changed the external_url
in /etc/gitlab/gitlab.rb
from:
external_url 'http://www.mysite.org
to:
external_url 'http://www.mysite.org:6789'
I then ran
sudo gitlab-ctl reconfigure
sudo gitlab-ctl stop
sudo gitlab-ctl start
My GitLab instance then was available on http://www.mysite.org:6789
but the profile images were not served using the proper port number and therefore didn't appear. The web inspector showed that profile images still had a src
without the port number, such as:
<img alt="" class="avatar s24" src="http:/www.mysite.org//uploads/user/avatar/2/myPic.jpg">
I checked the gitlab.yml
files and the port was set properly after running the reconfigure
command.
Please register or sign in to reply