From a6cb388eef3873a97b8747c67f6787b133f707fc Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 25 Oct 2015 09:20:22 -0700 Subject: [PATCH 1/2] Add nginx config file --- debian/nginx/dump1090-mutability | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian/nginx/dump1090-mutability 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/; + } +} + From 72e511594d4eb2a0e652e1fd86c34d1f9064c262 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 25 Oct 2015 10:23:51 -0700 Subject: [PATCH 2/2] Add nginx configs to packaging. --- debian/dump1090-mutability.install | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/dump1090-mutability.install b/debian/dump1090-mutability.install index 68b02bc..fffdec9 100644 --- a/debian/dump1090-mutability.install +++ b/debian/dump1090-mutability.install @@ -1,5 +1,6 @@ public_html/* usr/share/dump1090-mutability/html debian/lighttpd/* etc/lighttpd/conf-available +debian/nginx/* etc/nginx/sites-available debian/config-template usr/share/dump1090-mutability debian/cron-template usr/share/dump1090-mutability tools/vrs-basicaircraft-to-json.py usr/share/dump1090-mutability