Files
tar1090/99-tar1090-webroot.conf
2019-08-06 14:36:11 +02:00

16 lines
444 B
Plaintext

# serve tar1090 directly at / the web server root
alias.url += (
"/data/" => "/run/dump1090-fa/",
"/chunks/" => "/run/tar1090/",
"/" => "/usr/local/share/tar1090/html/",
)
$HTTP["url"] =~ "^/chunks/chunk_.*gz$" {
setenv.add-response-header += (
"Access-Control-Allow-Origin" => "*",
"Cache-Control" => "must-revalidate",
"Content-Encoding" => "gzip",
"Content-Type" => "application/json",
)
}