diff options
author | Franz-Robert van Vugt <f.vanvugt@zeno.nu> | 2014-03-27 21:40:33 +0100 |
---|---|---|
committer | Franz-Robert van Vugt <f.vanvugt@zeno.nu> | 2014-03-27 21:40:33 +0100 |
commit | cfc4a2dbe3652180c1d08d5d9e154e28cbb340fb (patch) | |
tree | f9af595878a2789be45c612e26ced8c9f7c592ad /lib/support/nginx | |
parent | f03820ebf2f28ddb26e422322219a815d8cd3749 (diff) | |
parent | fc5ac1451dcfda7cf53d536db79b552b29849276 (diff) | |
download | gitlab-ce-cfc4a2dbe3652180c1d08d5d9e154e28cbb340fb.tar.gz |
Merge branch 'master' of https://github.com/gitlabhq/gitlabhq into patch-1
Diffstat (limited to 'lib/support/nginx')
-rw-r--r-- | lib/support/nginx/gitlab | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab index 7a0f3efbb53..5bff362da0e 100644 --- a/lib/support/nginx/gitlab +++ b/lib/support/nginx/gitlab @@ -54,6 +54,14 @@ server { proxy_pass http://gitlab; } + # Enable gzip compression as per rails guide: http://guides.rubyonrails.org/asset_pipeline.html#gzip-compression + location ~ ^/(assets)/ { + root /home/git/gitlab/public; + gzip_static on; # to serve pre-gzipped version + expires max; + add_header Cache-Control public; + } + error_page 502 /502.html; } |