My gitlab instance is not using its bundled nginx. So I configured an external nginx and expose internal GitLab instance to public.
I found that most features are works just find, but when I create a new snippet GitLab redirects me to not the public dns but internal address.
At first, I thought that it might be the problem of nginx server configurations, and it turns out it wasn’t the case.
Then, I found that some config file has to do with snippets has internal address as url.
So, I modified gitlab_host in gitlab.rb.
And after that, it works just fine.
I can see gitlab.yml has correct url as well.
But I couldn’t find the config file that modifies gitlab_host as an example.
It is ok to modifying it? If not, what’s the best practice of it?
Note: modifying external_url is not the case in my problem.