diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-13 17:59:08 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-13 17:59:08 +0200 |
commit | 636ec6d3a048957b5cb348d7ff1b0b5bc6973bbf (patch) | |
tree | 30e2815fb410184e3bd303ddd2ef84c2209b7156 /config/application.rb | |
parent | d41fba4d374c5b586a25b755d79a410574f09062 (diff) | |
download | gitlab-ce-636ec6d3a048957b5cb348d7ff1b0b5bc6973bbf.tar.gz |
Update warnings about relative url support.
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 76b19eeb529..f087d3507bc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -66,13 +66,16 @@ module Gitlab # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + # Relative url support # Uncomment and customize the last line to run in a non-root path # WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this. - # Note that four settings need to be changed for this to work. + # Note that following settings need to be changed for this to work. # 1) In your application.rb file: config.relative_url_root = "/gitlab" # 2) In your gitlab.yml file: relative_url_root: /gitlab # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" # 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab" + # 5) In lib/support/nginx/gitlab : do not use asset gzipping, remove block starting with "location ~ ^/(assets)/" + # # To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production # # config.relative_url_root = "/gitlab" |