Merge pull request #78 from dschaper/nginx
Add nginx config file for webmap
This commit is contained in:
commit
ecc45517d6
1
debian/dump1090-mutability.install
vendored
1
debian/dump1090-mutability.install
vendored
|
@ -1,5 +1,6 @@
|
||||||
public_html/* usr/share/dump1090-mutability/html
|
public_html/* usr/share/dump1090-mutability/html
|
||||||
debian/lighttpd/* etc/lighttpd/conf-available
|
debian/lighttpd/* etc/lighttpd/conf-available
|
||||||
|
debian/nginx/* etc/nginx/sites-available
|
||||||
debian/config-template usr/share/dump1090-mutability
|
debian/config-template usr/share/dump1090-mutability
|
||||||
debian/cron-template usr/share/dump1090-mutability
|
debian/cron-template usr/share/dump1090-mutability
|
||||||
tools/vrs-basicaircraft-to-json.py usr/share/dump1090-mutability
|
tools/vrs-basicaircraft-to-json.py usr/share/dump1090-mutability
|
||||||
|
|
19
debian/nginx/dump1090-mutability
vendored
Normal file
19
debian/nginx/dump1090-mutability
vendored
Normal file
|
@ -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/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue