Make nginx rewrites possible gitlab.rb
Created by: kdex
I'm using GitLab Omnibus and always find myself manually changing and restarting my GitLab server once I reconfigure it, since for my installation, nginx needs special treatment.
To be more precise, I've moved GitLab's subdomain from http://git.example.com/ to http://dev.example.com/, which, due to compatibility, is done with a simple rewrite rule such as
if ($http_host = "git.example.com") {
rewrite ^ http://dev.example.com$request_uri permanent;
}
Unfortunately, as gitlab-ctl overwrites my nginx configuration, all of these changes are overwritten on my next gitlab-ctl reconfigure
. Could you implement URL rewrites/forwards in gitlab.rb?