dump1090/debian/nginx/dump1090-mutability
2016-02-16 10:33:18 +00:00

17 lines
522 B
Plaintext

# 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/;
}
}