Using gitlab behind Apache proxy all urls are wrong
- by Hippyjim
I've set up Gitlab on Ubuntu 12.04 using the default package from https://about.gitlab.com/downloads/
As I had Apache installed already I have to run nginx on localhost:8888. The problem is, all images (such as avatars) are now served from that url, and all the checkout urls Gitlab gives are also the same - instead of using my domain name.
If I change /etc/gitlab/gitlab.rb to use that url, then Gitlab stops working and gives a 503.
Any ideas how I can tell Gitlab what URL to present to the world, even though it's really running on localhost?
/etc/gitlab/gitlab.rb looks like:
# Change the external_url to the address your users will type in their browser
external_url 'http://my.local.domain'
redis['port'] = 6379
postgresql['port'] = 2345
unicorn['port'] = 3456
and /opt/gitlab/embedded/conf/nginx.conf looks like:
server {
listen localhost:8888;
server_name my.local.domain;