forked from wiedehopf/tar1090
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx_webroot.conf
40 lines (38 loc) · 1 KB
/
nginx_webroot.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
location /data/ {
alias /run/dump1090-fa/;
}
location /chunks/ {
alias /run/tar1090/;
location ~ chunk_.*\.gz$ {
add_header Cache-Control "public, max-age=1209600";
add_header Content-Type "application/json";
add_header Content-Encoding "gzip";
}
location ~ current_.*\.gz$ {
add_header Cache-Control "must-revalidate";
add_header Content-Type "application/json";
add_header Content-Encoding "gzip";
}
}
location / {
alias /usr/local/share/tar1090/html/;
try_files $uri $uri/ =404;
location ~ db/.*\.json$ {
add_header Cache-Control "public, max-age=86400";
}
location ~ .*\.png$ {
add_header Cache-Control "public, max-age=1209600";
}
location ~ .*\.gif$ {
add_header Cache-Control "public, max-age=1209600";
}
location ~ config.js$ {
add_header Cache-Control "must-revalidate";
}
location ~ .*\.js$ {
add_header Cache-Control "public, max-age=1209600";
}
location ~ .*\.css$ {
add_header Cache-Control "public, max-age=1209600";
}
}