Skip to content

Commit

Permalink
Merge pull request MalcolmRobb#78 from dschaper/nginx
Browse files Browse the repository at this point in the history
Add nginx config file for webmap
  • Loading branch information
mutability committed Oct 26, 2015
2 parents f8a3c46 + 72e5115 commit ecc4551
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/dump1090-mutability.install
Original file line number Diff line number Diff line change
@@ -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
Expand Down
19 changes: 19 additions & 0 deletions debian/nginx/dump1090-mutability
Original file line number Diff line number Diff line change
@@ -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/;
}
}

0 comments on commit ecc4551

Please sign in to comment.