I have a strange reverse proxy issue that cropped up after upgrading to version 13. For some reason, upon upgrading to the latest version of gitlab-ee (I was on 12.10.something before) both my NGINX and HAProxy reverse proxy servers no longer rewrite what I am assuming to be the Location header of individual files within my gitlab code repositories.
I thought maybe it was my HAProxy configuration, as I just switched to HAProxy from NGINX, however my “known-good” NGINX configuration has the same issue. Whereas, in version 12 of gitlab-ee this problem did not exist.
The interface and nearly all functionality of gitlab works perfectly through the proxy. I can sign in to gitlab using my proxy URL and the headers all look correct in both my requests to the proxy and responses from the poxy, according to cURL
However if I go to look at a specific file, any individual file within a code repository in gitlab, the second I click on an individual file in the repository, the URL is not rewritten by the proxy. So for instance if I was looking at a project and I wanted to look at a file like main.cpp within said project, if I click on that file and I’m outside of my network, the request will fail because the file shows as being served from gitserver.mysite.com/mpyproject/main.cpp and not git.mysite.com/myproject/main.cpp.
Can anyone tell me what headers I might need to rewrite on my proxy to resolve this issue? Or if anything changed between 12.10 and 13 involving how git repository files are served?