mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
nginx: fix nginx configs for static assets
This commit is contained in:
parent
fee0f77831
commit
992ff99712
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user