Actually serve data on 8080, not just a redirect.

(This is not ideal but plenty of people seem to be confused by the
redirect and how it interacts with NAT)
This commit is contained in:
Oliver Jowett 2016-09-22 16:49:45 +01:00
parent 802f1f9404
commit c144507471

View file

@ -12,12 +12,12 @@ url.redirect += (
"^/dump1090-fa$" => "/dump1090-fa/"
)
# Listen on port 8080 and emit 301s pointing to port 80
# to support the old convention of the map being on 8080
# Listen on port 8080 and serve the map there, too.
$SERVER["socket"] == ":8080" {
$HTTP["host"] =~ "^(.*):8080" {
url.redirect = ("^/(.*)" => "http://%1/dump1090-fa/$1")
}
alias.url += (
"/data/" => "/run/dump1090-fa/",
"/" => "/usr/share/dump1090-fa/html/"
)
}
# Add CORS header