mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set keepalive_timeout 0 where captive portal in use, and update otherwise to nginx's current default of 75. Ticket #6421
This commit is contained in:
parent
99c4d90dc1
commit
dbc5fd33c9
@ -1297,7 +1297,6 @@ http {
|
||||
server_tokens off;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
access_log syslog:server=unix:/var/run/log,facility=local5 combined;
|
||||
|
||||
@ -1305,6 +1304,9 @@ EOD;
|
||||
|
||||
if ($captive_portal !== false) {
|
||||
$nginx_config .= "\tlimit_conn_zone \$binary_remote_addr zone=addr:10m;\n";
|
||||
$nginx_config .= "\tkeepalive_timeout 0;\n";
|
||||
} else {
|
||||
$nginx_config .= "\tkeepalive_timeout 75;\n";
|
||||
}
|
||||
|
||||
if ($cert <> "" and $key <> "") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user