summaryrefslogtreecommitdiff
path: root/nginx/radar.pestrel.com.conf
blob: b7d9c08fb10d6f5b35867cd7259931e3e9afcc03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# BOM radar loop — radar.pestrel.com
# Installed to /etc/nginx/conf.d/radar.conf by setup.sh
#
# Requires /etc/nginx/nginx.conf to include:
#   include /etc/nginx/conf.d/*.conf;

server {
    listen 80;
    listen [::]:80;
    server_name radar.pestrel.com;

    root /srv/www/radar;
    index index.html;

    # APNG refreshes every ~6 minutes; let clients revalidate often.
    location ~ \.apng$ {
        add_header Cache-Control "no-cache";
    }

    location / {
        try_files $uri $uri/ =404;
    }
}