Commit 7225c06934993e1c1deccf3adfc2ed770f69e0db
1 parent
5857a7a9
Exists in
master
and in
4 other branches
default gitlab.relative_url_root to ENV['RAILS_RELATIVE_URL_ROOT']
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/initializers/1_settings.rb
... | ... | @@ -46,7 +46,7 @@ Settings.gitlab['default_projects_limit'] ||= 10 |
46 | 46 | Settings.gitlab['host'] ||= 'localhost' |
47 | 47 | Settings.gitlab['https'] = false if Settings.gitlab['https'].nil? |
48 | 48 | Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80 |
49 | -Settings.gitlab['relative_url_root'] ||= '' | |
49 | +Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
50 | 50 | Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http" |
51 | 51 | Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}" |
52 | 52 | Settings.gitlab['support_email'] ||= Settings.gitlab.email_from | ... | ... |