diff --git a/debian/nginx/dump1090-mutability b/debian/nginx/dump1090-mutability new file mode 100644 index 0000000..c7e63c3 --- /dev/null +++ b/debian/nginx/dump1090-mutability @@ -0,0 +1,19 @@ +# Allows access to the static files that provide the dump1090 map view, +# and also to the dynamically-generated json parts that contain aircraft +# data and are periodically written by the dump1090 daemon. +# +server{ + rewrite ^/dump1090/$ /dump1090/gmap.html permanent; + rewrite ^/dump1090$ /dump1090/gmap.html permanent; + + location /dump1090/ { + alias /usr/share/dump1090-mutability/html/; + } + location /dump1090/data/ { + alias /run/dump1090-mutability/; + } + location /dump1090/db/ { + alias /var/cache/dump1090-mutability/db/; + } +} +