bunkerweb 1.4.0
This commit is contained in:
20
core/limit/confs/http/limitconn.conf
Normal file
20
core/limit/confs/http/limitconn.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
{% if has_variable(all, "USE_LIMIT_CONN", "yes") +%}
|
||||
|
||||
map $http2 $v1ip {
|
||||
default "";
|
||||
"" $binary_remote_addr;
|
||||
}
|
||||
|
||||
map $http2 $v2ip {
|
||||
default $binary_remote_addr;
|
||||
"" "";
|
||||
}
|
||||
|
||||
limit_conn_zone $v1ip zone=v1ips:10m;
|
||||
limit_conn_zone $v2ip zone=v2ips:10m;
|
||||
|
||||
limit_conn_log_level warn;
|
||||
|
||||
limit_conn_status 429;
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user