I've found using
```ruby
Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || ''
```

is more flexible. one can set it an env file, directly in the Procfile, in config/unicorn.rb, in /etc/init.d/gitlab and not need to bother with the setting in config/gitlab.yml. DRY and such.