-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lighttpd.conf
28 lines (28 loc) · 1.43 KB
/
.lighttpd.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
$HTTP["url"] =~ "\.json\.gz$" {
setenv.add-response-header += ("Access-Control-Allow-Origin" => "*")
setenv.add-response-header += ("Cache-Control" => "max-age=3600, public")
setenv.add-response-header += ("Content-Encoding" => "gzip")
setenv.add-response-header += ("Content-Type" => "application/json")
}
$HTTP["url"] =~ "\.geojson\.gz$" {
setenv.add-response-header += ("Access-Control-Allow-Origin" => "*")
setenv.add-response-header += ("Cache-Control" => "max-age=3600, public")
setenv.add-response-header += ("Content-Encoding" => "gzip")
setenv.add-response-header += ("Content-Type" => "application/geo+json")
}
$HTTP["url"] =~ "\.gpx\.gz$" {
setenv.add-response-header += ("Access-Control-Allow-Origin" => "*")
setenv.add-response-header += ("Cache-Control" => "max-age=3600, public")
setenv.add-response-header += ("Content-Encoding" => "gzip")
setenv.add-response-header += ("Content-Type" => "application/gpx+xml")
}
$HTTP["url"] =~ "\.pbf$" {
setenv.add-response-header += ("Access-Control-Allow-Origin" => "*")
setenv.add-response-header += ("Cache-Control" => "max-age=3600, public")
setenv.add-response-header += ("Content-Type" => "application/x-protobuf")
}
$HTTP["url"] =~ "\.pmtiles$" {
setenv.add-response-header += ("Access-Control-Allow-Origin" => "*")
setenv.add-response-header += ("Cache-Control" => "max-age=3600, public")
setenv.add-response-header += ("Content-Type" => "application/octet-stream")
}