summaryrefslogtreecommitdiff
path: root/lib/support
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-20 23:32:39 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-20 23:32:39 +0100
commit26d57a648c09f40bd1da3c81a0efe3661288b1af (patch)
tree50f2ce976c34d2c0656b8c1b3ded6953e4628dbe /lib/support
parent6945f4a299d9b46b9896e431086277bfedf54b7d (diff)
downloadgitlab-ce-26d57a648c09f40bd1da3c81a0efe3661288b1af.tar.gz
Restore nginx config a little more.
Diffstat (limited to 'lib/support')
-rw-r--r--lib/support/nginx/gitlab1
-rw-r--r--lib/support/nginx/gitlab-ssl1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab
index b6889bb7d97..62a4276536c 100644
--- a/lib/support/nginx/gitlab
+++ b/lib/support/nginx/gitlab
@@ -105,6 +105,7 @@ server {
## 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
expires max;
add_header Cache-Control public;
diff --git a/lib/support/nginx/gitlab-ssl b/lib/support/nginx/gitlab-ssl
index 73885e6c22a..2aefc944698 100644
--- a/lib/support/nginx/gitlab-ssl
+++ b/lib/support/nginx/gitlab-ssl
@@ -152,6 +152,7 @@ server {
## 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
expires max;
add_header Cache-Control public;