Refactor limit connection configuration to improve clarity and correct default mappings

This commit is contained in:
Théophile Diot 2025-01-10 17:08:22 +01:00
parent c97fd79e0e
commit 970a30b65b
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -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;