GitLab Web IDE not working and cant find files

Hi everyone,

I’m running a self hosted gitlab instance in a docker container and im forwarding traffic via a reverse proxy using IIS. The gitlab instance has been given a certificate and is all running SSL nicely.

The issue im facing is that when opening certain files, usually code like C#, im faced with an error saying gitlab could not load the file. When i either click to load the webIDE or download the file i get a 404 saying the file is not found. Not even a preview is loaded.

With regular text files, images or other file types i get no error clicking the file and a preview is displayed properly. However if i do click to use the web IDE i get an error from gitlab saying the main branch could not be found.

Interestingly if i access the gitlab server using its IP address rather than its FQDN i get no errors and using the webIDE all works as it should. Except of course SSL does not work for this.

Is there something im missing in the rb file that would break this functionality behind a reverse proxy? as everything aside from the web id and being able to find certain code files works fine…

Many thanks.

Update for everyone…

i have noticed that when i click to create a new project the project url shows the servers IP address and NOT the FQDN thats used when you navigate to the gitlab instance.

Not sure where it has got that from as in the gitlab.rn file i have not entered the IP anywhere…

bumpp

Bloop,

Your configuration is similar to mine and I had the same unexpected 404 when using WebIDE.

Check your front-end proxy configuration that is passing traffic to your gitlab server.
Remove the trailing slash from your proxy_pass if present.

e.g. http://gitlab.yourdomain.local/ becomes http://gitlab.yourdomain.local

Issue in 2018 - WebIDE fails due to 404 making call to projects API
Issue in 2022 - Feedback on the GitLab Web IDE Beta