mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor limit connection configuration to improve clarity and correct default mappings
This commit is contained in:
parent
c97fd79e0e
commit
970a30b65b
1 changed files with 4 additions and 4 deletions
|
|
@ -1,18 +1,18 @@
|
|||
{%- if has_variable(all, "USE_LIMIT_CONN", "yes") -%}
|
||||
|
||||
map $http2 $v1ip {
|
||||
default "";
|
||||
"" $binary_remote_addr;
|
||||
default "";
|
||||
}
|
||||
|
||||
map $http2 $v2ip {
|
||||
default $binary_remote_addr;
|
||||
"" "";
|
||||
default $binary_remote_addr;
|
||||
}
|
||||
|
||||
map $http3 $v3ip {
|
||||
default $binary_remote_addr;
|
||||
"" "";
|
||||
"1" $binary_remote_addr;
|
||||
default "";
|
||||
}
|
||||
|
||||
limit_conn_zone $v1ip zone=v1ips:10m;
|
||||
|
|
|
|||
Loading…
Reference in a new issue