adjust nginx config

This commit is contained in:
Matthias Wirth
2021-03-24 11:39:54 +01:00
parent 085c8c0845
commit 088b805da7

View File

@@ -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/ {