summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-05-13 17:59:08 +0200
committerMarin Jankovski <marin@gitlab.com>2014-05-13 17:59:08 +0200
commit636ec6d3a048957b5cb348d7ff1b0b5bc6973bbf (patch)
tree30e2815fb410184e3bd303ddd2ef84c2209b7156 /lib
parentd41fba4d374c5b586a25b755d79a410574f09062 (diff)
downloadgitlab-ce-636ec6d3a048957b5cb348d7ff1b0b5bc6973bbf.tar.gz
Update warnings about relative url support.
Diffstat (limited to 'lib')
-rw-r--r--lib/support/nginx/gitlab5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab
index f64c8d5883c..98c91637390 100644
--- a/lib/support/nginx/gitlab
+++ b/lib/support/nginx/gitlab
@@ -59,6 +59,9 @@ server {
}
# Enable gzip compression as per rails guide: http://guides.rubyonrails.org/asset_pipeline.html#gzip-compression
+ # WARNING: If you are using relative urls do remove the block below
+ # See config/application.rb under "Relative url support" for the list of
+ # other files that need to be changed for relative url support
location ~ ^/(assets)/ {
root /home/git/gitlab/public;
gzip_static on; # to serve pre-gzipped version
@@ -67,4 +70,4 @@ server {
}
error_page 502 /502.html;
-} \ No newline at end of file
+}