forked from wiedehopf/tar1090
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path95-tar1090-otherport.conf
33 lines (31 loc) · 976 Bytes
/
95-tar1090-otherport.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# serve tar1090 directly on port 8504
$SERVER["socket"] == ":8504" {
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",
)
}
}
$SERVER["socket"] == "[::]:8504" {
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",
)
}
}