dump1090-fa/debian/lighttpd/89-dump1090-fa.conf

79 lines
2.4 KiB
Plaintext
Raw Normal View History

# 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.
# Enable alias module
#
## This module is normally already enabled in lighttpd, so you should not
## need to uncommment this line.
## There are some cases (e.g. when installing this on a Raspberry Pi
## that runs PiHole) in which the module has been removed from the
## default configuration, and the dump1090-fa web interface no longer
## loads properly.
## If this is what you are experiencing, or if you see messages in your
## error log like:
## (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
## then uncommenting this line and then restarting lighttpd could fix
## the issue.
## This is not enabled by default as standard lighttpd will not start if
## modules are loaded multiple times.
#
# server.modules += ( "mod_alias" )
alias.url += (
"/skyaware/data/" => "/run/dump1090-fa/",
Merge 1090 and UAT aircraft into one map Squashed commit of the following: commit ef61cba13698090b85fea3136bc77e320eab3d0d Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:39:22 2021 +0000 Remove unused receiver clock code commit 809cf656b5a098948fbfc5ce2b5f60f753fb4043 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:35:32 2021 +0000 Avoid calling getDataSource() so many times and cleanup spacing commit a0000b942bb5aa5f8061db0ca9d405461c6eea07 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:19:11 2021 +0000 Copy paste bug commit ccc3cd3964bddcd86e8faf45c06e577309cffb02 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:17:14 2021 +0000 Filter UAT logic commit 34dc860a16e1c57cdc3563ec31c45f9b1b133d4c Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 03:24:56 2021 +0000 Reorder message rate text commit 25db80799a2a6dc8e33835cb2ed43c305c87a4d8 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:56:43 2021 +0000 Track 1090 and 978 message rate separately commit a2031d13e4a447ad0f8de61eada75f0da019d1c2 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:27:25 2021 +0000 UAT classification logic commit 5482274016eecfbc27f2b5de6779c032803ca177 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 23:13:39 2021 +0000 Spacing commit 2fc4408e6437ec5e0db2329d46a68fc6538abc45 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:57:05 2021 +0000 Load UAT history.json files if UAT is enabled commit 9ccf4eba7590b1f38c78aeb73209b48cb8e0c34f Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:24:23 2021 +0000 ajax calls to fetch UAT aircraft json if enabled commit d8f0c1c042bdba8ae1348a513df7dcca6ebc23fc Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 21:29:01 2021 +0000 Read skyaware978 config files on initialization commit 0245fa7449e92555b7631ab0365e43fb38e1c221 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 20:15:09 2021 +0000 Change SkyAware url to /skyaware to genericize it for dual mode commit 9384364b2473f8c73d3f165d7f5192c1995457a5 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:46:06 2021 +0000 Add UAT toggle and description (non-functional) commit 9b65a55c0ceb7c3da3b3515d26f0d5d42192f658 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:32:54 2021 +0000 Removed unused css
2021-02-25 05:35:05 +00:00
"/skyaware/data-978/" => "/run/skyaware978/",
"/skyaware/" => "/usr/share/dump1090-fa/html/"
)
# redirect the slash-less URL
url.redirect += (
Merge 1090 and UAT aircraft into one map Squashed commit of the following: commit ef61cba13698090b85fea3136bc77e320eab3d0d Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:39:22 2021 +0000 Remove unused receiver clock code commit 809cf656b5a098948fbfc5ce2b5f60f753fb4043 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:35:32 2021 +0000 Avoid calling getDataSource() so many times and cleanup spacing commit a0000b942bb5aa5f8061db0ca9d405461c6eea07 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:19:11 2021 +0000 Copy paste bug commit ccc3cd3964bddcd86e8faf45c06e577309cffb02 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:17:14 2021 +0000 Filter UAT logic commit 34dc860a16e1c57cdc3563ec31c45f9b1b133d4c Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 03:24:56 2021 +0000 Reorder message rate text commit 25db80799a2a6dc8e33835cb2ed43c305c87a4d8 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:56:43 2021 +0000 Track 1090 and 978 message rate separately commit a2031d13e4a447ad0f8de61eada75f0da019d1c2 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:27:25 2021 +0000 UAT classification logic commit 5482274016eecfbc27f2b5de6779c032803ca177 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 23:13:39 2021 +0000 Spacing commit 2fc4408e6437ec5e0db2329d46a68fc6538abc45 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:57:05 2021 +0000 Load UAT history.json files if UAT is enabled commit 9ccf4eba7590b1f38c78aeb73209b48cb8e0c34f Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:24:23 2021 +0000 ajax calls to fetch UAT aircraft json if enabled commit d8f0c1c042bdba8ae1348a513df7dcca6ebc23fc Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 21:29:01 2021 +0000 Read skyaware978 config files on initialization commit 0245fa7449e92555b7631ab0365e43fb38e1c221 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 20:15:09 2021 +0000 Change SkyAware url to /skyaware to genericize it for dual mode commit 9384364b2473f8c73d3f165d7f5192c1995457a5 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:46:06 2021 +0000 Add UAT toggle and description (non-functional) commit 9b65a55c0ceb7c3da3b3515d26f0d5d42192f658 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:32:54 2021 +0000 Removed unused css
2021-02-25 05:35:05 +00:00
"^/skyaware$" => "/skyaware/",
"^/dump1090-fa$" => "/skyaware/",
"^/dump1090-fa/" => "/skyaware/"
)
# Listen on port 8080 and serve the map there, too.
$SERVER["socket"] == ":8080" {
alias.url += (
"/data/" => "/run/dump1090-fa/",
Merge 1090 and UAT aircraft into one map Squashed commit of the following: commit ef61cba13698090b85fea3136bc77e320eab3d0d Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:39:22 2021 +0000 Remove unused receiver clock code commit 809cf656b5a098948fbfc5ce2b5f60f753fb4043 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:35:32 2021 +0000 Avoid calling getDataSource() so many times and cleanup spacing commit a0000b942bb5aa5f8061db0ca9d405461c6eea07 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:19:11 2021 +0000 Copy paste bug commit ccc3cd3964bddcd86e8faf45c06e577309cffb02 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 04:17:14 2021 +0000 Filter UAT logic commit 34dc860a16e1c57cdc3563ec31c45f9b1b133d4c Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 03:24:56 2021 +0000 Reorder message rate text commit 25db80799a2a6dc8e33835cb2ed43c305c87a4d8 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:56:43 2021 +0000 Track 1090 and 978 message rate separately commit a2031d13e4a447ad0f8de61eada75f0da019d1c2 Author: eric1tran <eric1tran@gmail.com> Date: Thu Feb 25 00:27:25 2021 +0000 UAT classification logic commit 5482274016eecfbc27f2b5de6779c032803ca177 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 23:13:39 2021 +0000 Spacing commit 2fc4408e6437ec5e0db2329d46a68fc6538abc45 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:57:05 2021 +0000 Load UAT history.json files if UAT is enabled commit 9ccf4eba7590b1f38c78aeb73209b48cb8e0c34f Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 22:24:23 2021 +0000 ajax calls to fetch UAT aircraft json if enabled commit d8f0c1c042bdba8ae1348a513df7dcca6ebc23fc Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 21:29:01 2021 +0000 Read skyaware978 config files on initialization commit 0245fa7449e92555b7631ab0365e43fb38e1c221 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 20:15:09 2021 +0000 Change SkyAware url to /skyaware to genericize it for dual mode commit 9384364b2473f8c73d3f165d7f5192c1995457a5 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:46:06 2021 +0000 Add UAT toggle and description (non-functional) commit 9b65a55c0ceb7c3da3b3515d26f0d5d42192f658 Author: eric1tran <eric1tran@gmail.com> Date: Wed Feb 24 19:32:54 2021 +0000 Removed unused css
2021-02-25 05:35:05 +00:00
"/data-978/" => "/run/skyaware978/",
"/" => "/usr/share/dump1090-fa/html/"
)
}
2016-07-10 14:26:44 +00:00
# Add CORS header
server.modules += ( "mod_setenv" )
$HTTP["url"] =~ "^/dump1090-fa/data/.*\.json$" {
setenv.set-response-header = ( "Access-Control-Allow-Origin" => "*" )
2016-07-10 14:26:44 +00:00
}
# Uncomment this section to enable SSL traffic (HTTPS) - especially useful
# for .dev domains
## Listen on 8443 for SSL connections
#server.modules += ( "mod_openssl" )
#$HTTP["host"] == "piaware.example.com" {
# $SERVER["socket"] == ":8443" {
# ssl.engine = "enable"
# ssl.pemfile = "/etc/ssl/certs/combined.pem"
# ssl.ca-file = "/etc/ssl/certs/fullchain.cer"
# ssl.honor-cipher-order = "enable"
# ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
# ssl.use-sslv2 = "disable"
# ssl.use-sslv3 = "disable"
#
# alias.url += (
# "/data/" => "/run/dump1090-fa/",
# "/" => "/usr/share/dump1090-fa/html/"
# )
# }
#}
#
## Redirect HTTP to HTTPS
#$HTTP["scheme"] == "http" {
# $HTTP["host"] =~ ".*" {
# url.redirect = (".*" => "https://%0$0")
# }
#}