Feature request: relative url support
I don't have a wildcard domain, so I want to deploy gitlab to a relative URL. I'm going to gather all the steps I took to get this to work in hopes of adding a USE flag to the ebuild for this at some point. First https://docs.gitlab.com/ee/install/relative_url.html covers most of the changes.
- cp gitlab/config/initializers/relative_url.rb.sample /etc/gitlab/initializers/relative_url.rb
-
- change config.relative_url_root = "/gitlab" as necessary
- Uncomment / change config.relative_url_root = "/gitlab" in /etc/gitlab/gitlab.yml
- cp gitlab/config/puma.rb /etc/gitlab/
-
- add ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" to the bottom
- edit /etc/gitlab-shell/config.yml append relative path to gitlab_url setting
- edit /etc/default/gitlab append relative path to -authBackend parameter
- edit /etc/init.d/gitlab append relative path to -authBackend parameter in $workhorse_command_args
- edit /etc/nginx/sites-available/gitlab.conf:
-
- move upstream, log_format, and map directives to /etc/nginx/nginx.conf
-
- remove server block
-
- add location /gitlab at the top
-
- change location / to location /gitlab/
-
- add location ~ ^/gitlab/admin/sidekiq/* { proxy_pass http://gitlab-workhorse; }
-
- symlink /var/www//htdocs/gitlab to /opt/gitlab/gitlab/public
- edit /etc/gitlab-gitaly/config.toml uncomment / change relative_url_root = '/gitlab'
- edit /etc/gitlab-shell/config.yml uncomment / change gitlab_relative_url_root: "/gitlab"