nginx: fix nginx configs for static assets

This commit is contained in:
Sameer Naik 2015-12-10 17:45:05 +05:30
parent fee0f77831
commit 992ff99712
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,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 {{GITLAB_INSTALL_DIR}};
root {{GITLAB_INSTALL_DIR}}/public;
gzip_static on; # to serve pre-gzipped version
expires max;
add_header Cache-Control public;

View File

@ -245,7 +245,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 {{GITLAB_INSTALL_DIR}};
root {{GITLAB_INSTALL_DIR}}/public;
gzip_static on; # to serve pre-gzipped version
expires max;
add_header Cache-Control public;