From 4a19b6f799092f523b4ace0e95432adaf4089134 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sun, 11 May 2025 12:42:31 +0300 Subject: [PATCH] Fix rate limiter configuration --- config/Caddyfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/Caddyfile b/config/Caddyfile index dfdc8f2..6ea5644 100644 --- a/config/Caddyfile +++ b/config/Caddyfile @@ -5,18 +5,18 @@ } } -rate_limit { - distributed - zone dynamic { - key {client_ip} - events 20 - window 5s - jitter 0.1 - } - log_key -} - :8080 { + rate_limit { + distributed + zone dynamic { + key {client_ip} + events 20 + window 5s + jitter 0.1 + } + log_key + } + root * /phpbb/www php_fastcgi unix//run/php-fpm.sock {