[hamradio-commits] [dump1090-mutability] 110/172: Add nginx config file
Matteo F. Vescovi
mfv at moszumanska.debian.org
Sun Jan 28 13:45:51 UTC 2018
This is an automated email from the git hooks/post-receive script.
mfv pushed a commit to branch master
in repository dump1090-mutability.
commit 8fbec578b8689cc076c81511f3e721e11a144dbd
Author: Dan Schaper <dschaper at ganymeade.com>
Date: Sun Oct 25 09:20:22 2015 -0700
Add nginx config file
---
debian/nginx/dump1090-mutability | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
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/;
+ }
+}
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git
More information about the pkg-hamradio-commits
mailing list