adjust nginx config
This commit is contained in:
27
nginx.conf
27
nginx.conf
@@ -30,9 +30,30 @@ location /INSTANCE/data/ {
|
||||
|
||||
location /INSTANCE/globe_history/ {
|
||||
alias /var/globe_history/;
|
||||
gzip off;
|
||||
add_header Cache-Control "public, max-age=3600";
|
||||
add_header Content-Encoding "gzip";
|
||||
gzip on;
|
||||
|
||||
location ~ /acas/ {
|
||||
default_type text/plain;
|
||||
add_header Cache-Control "private, max-age=5";
|
||||
|
||||
gzip_static on;
|
||||
gunzip on;
|
||||
}
|
||||
|
||||
location ~ ....-..-.. {
|
||||
rewrite "^(.*)/globe_history/(....)-(..)-(..)/(.*)$" "$1/globe_history/$2/$3/$4/$5" last;
|
||||
}
|
||||
|
||||
location ~ traces/ {
|
||||
gzip off;
|
||||
add_header Cache-Control "public, max-age=1209600";
|
||||
add_header Content-Encoding "gzip";
|
||||
}
|
||||
location ~ heatmap/ {
|
||||
gzip off;
|
||||
add_header Cache-Control "public, max-age=1209600";
|
||||
add_header Content-Encoding "gzip";
|
||||
}
|
||||
}
|
||||
|
||||
location /INSTANCE/chunks/ {
|
||||
|
||||
Reference in New Issue
Block a user