Incorrect URL for builds and new projects when behind a proxy
Hello, I have noticed that some time in the past couple of weeks the URLs generated for build links are incorrect.
We are hosting Gitlab on a VM and then proxying through IIS to the outside world. The majority of URLs are created correctly but for example links to a specific build in the builds page are incorrect, they are using the internal IP of the VM.
We are using the omnibus edition of Gitlab version 8.6.3 currently and have the following in our .rb file:
external_url 'https://xxx.com'
nginx['listen_port'] = 80
nginx['listen_https'] = false
I have confirmed that xxx.com is correct for our application. IIS is applying an SSL certificate to the connection but the internal communications shouldn't be encrypted.
Build links are generated in the form of https://192.168.1.2:80/projects/project/builds/130 instead of the expected domain name.
The other place that the IP address seems to have appeared is in the new project screen. The "Project Path" field contains https://192.168.1.2:80/[username]/ as the default instead of the correct domain path.
I am sure that this used to work but unfortunately I can't put my finger on when exactly it broke.
Please let me know if I can provide any extra information.