mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
lighttpd: set HSTS max-age to 1 year (#4976)
This commit is contained in:
parent
05d3224e70
commit
e780346dbd
@ -412,7 +412,7 @@ EOD;
|
||||
|
||||
if (!empty($config['system']['webgui']['ssl-hsts'])) {
|
||||
$lighty_config .= "\$HTTP[\"scheme\"] == \"https\" {\n";
|
||||
$lighty_config .= " setenv.add-response-header = (\"Strict-Transport-Security\" => \"max-age=15768000\" )\n";
|
||||
$lighty_config .= " setenv.add-response-header = (\"Strict-Transport-Security\" => \"max-age=31536000\" )\n";
|
||||
$lighty_config .= "}\n";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user