webui: fix previous

configuration requires forward slashes here
This commit is contained in:
Stephan de Wit 2024-03-22 10:25:20 +01:00
parent f25e1214dc
commit d27eb4261c

View File

@ -433,7 +433,7 @@ EOD;
$listener = "[{$listener}]";
}
$lighty_config .= "\$SERVER[\"socket\"] == \"{$listener}:{$lighty_port}\" {\n";
$lighty_config .= "\t\$HTTP[\"url\"] =~ \"^api\" {\n\t\tserver.stream-response-body = 2\n\t}\n";
$lighty_config .= "\t\$HTTP[\"url\"] =~ \"^/api/\" {\n\t\tserver.stream-response-body = 2\n\t}\n";
if ($config['system']['webgui']['protocol'] == "https") {
$lighty_config .= "\tssl.engine = \"enable\"" . PHP_EOL;
}