nginx conf: no need to disable gzip
can still be enabled / disabled globally in nginx
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -107,8 +107,6 @@ location /INSTANCE {
|
|||||||
alias HTMLPATH/;
|
alias HTMLPATH/;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
gzip off;
|
|
||||||
gzip_static off;
|
|
||||||
|
|
||||||
# location block priority:
|
# location block priority:
|
||||||
# = / exact location matches > regex matches > prefix matchs
|
# = / exact location matches > regex matches > prefix matchs
|
||||||
@@ -116,20 +114,14 @@ location /INSTANCE {
|
|||||||
# exact matches
|
# exact matches
|
||||||
location = /INSTANCE/config.js {
|
location = /INSTANCE/config.js {
|
||||||
add_header Cache-Control "no-cache";
|
add_header Cache-Control "no-cache";
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
}
|
||||||
location = /INSTANCE/index.html {
|
location = /INSTANCE/index.html {
|
||||||
add_header Cache-Control "no-cache";
|
add_header Cache-Control "no-cache";
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# regex matches
|
# regex matches
|
||||||
location ~ ^/INSTANCE/style.*\.css$ {
|
location ~ ^/INSTANCE/style.*\.css$ {
|
||||||
add_header Cache-Control "public, max-age=7776000";
|
add_header Cache-Control "public, max-age=7776000";
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/INSTANCE/db-.*\.js$ {
|
location ~ ^/INSTANCE/db-.*\.js$ {
|
||||||
@@ -141,13 +133,9 @@ location /INSTANCE {
|
|||||||
|
|
||||||
location ~ ^/INSTANCE/libs/.*$ {
|
location ~ ^/INSTANCE/libs/.*$ {
|
||||||
add_header Cache-Control "public, max-age=7776000";
|
add_header Cache-Control "public, max-age=7776000";
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
}
|
||||||
location ~ ^/INSTANCE/[^/]*\.js$ {
|
location ~ ^/INSTANCE/[^/]*\.js$ {
|
||||||
add_header Cache-Control "public, max-age=7776000";
|
add_header Cache-Control "public, max-age=7776000";
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# prefix matches
|
# prefix matches
|
||||||
|
|||||||
Reference in New Issue
Block a user