Uploaded avatar image not getting displayed in GitLab CE interface

I am running GitLab CE on Ubuntu based AWS instance.

On my gitlab config /etc/gitlab/gitlab.rb, I have only the following code un-commented.

external_url 'http://gitlab.betasquirrel.com:8888'
unicorn['worker_timeout'] = 6000
unicorn['port'] = 8888
web_server['external_users'] = ['www-data']
nginx['enable'] = false
ci_nginx['enable'] = false

Reconfigured by running,

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

And configured virtual host for apache on /opt/bitnami/apache2/conf/bitnami/httpd.conf

<VirtualHost *:80>
ServerName gitlab.mydomain.com
DocumentRoot /opt/gitlab/

ProxyPass /
ProxyPassReverse /

# Custom log file locations
ErrorLog /opt/bitnami/apache2/logs/gitlab_error.log
CustomLog /opt/bitnami/apache2/logs/gitlab_access.log combined

When I updated profile avatar, the file is getting uploaded on /opt/gitlab/embedded/service/gitlab-rails/public/uploads/user/avatar/2/avatar.png

But the image is not getting displayed in web interface and the image location attached to interface is http://gitlab.mydomain.com:8888/uploads/user/avatar/2/avatar.png

I can directly access the avatar on http://gitlab.mydomain.com/uploads/user/avatar/2/avatar.png. How can I rewrite all the uploads folder request on port 8888 to not have the port number?

  1. Curious why you didn’t stand up Gitlab in the recommended default configuration served by NGINX instead of by Apache?

  2. Why aren’t you doing this, and leaving nginx on?

    external_url ‘https://gitlab.betasquirrel.com

    don’t put any of the disable-nginx or unicorn config stuff.

Thanks, fixed by removing port number from external_url