add globe_history for lighttpd config

This commit is contained in:
Matthias Wirth
2020-06-27 12:59:39 +02:00
parent a22b697fab
commit 54c4524c8f

View File

@@ -8,6 +8,7 @@ url.redirect += (
alias.url += (
"/INSTANCE/data/" => "SOURCE_DIR/",
"/INSTANCE/chunks/" => "/run/SERVICE/",
"/INSTANCE/globe_history/" => "/var/globe_history/",
"/INSTANCE/" => "HTMLPATH/"
)
@@ -49,9 +50,9 @@ $HTTP["url"] =~ "^/INSTANCE/data/traces/" {
"Content-Encoding" => "gzip",
)
}
$HTTP["url"] =~ "^/INSTANCE/data/heatmap/" {
$HTTP["url"] =~ "^/INSTANCE/globe_history/" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=10",
"Cache-Control" => "public, max-age=3600",
"Content-Encoding" => "gzip",
)
}