From c7304784b972f92d07f3a23f708d6a5cda5aa0ec Mon Sep 17 00:00:00 2001 From: Opnxng Date: Tue, 7 Nov 2023 13:29:33 +0800 Subject: [PATCH] Caddy: adjusted ratelimting --- templates/conf/Caddyfile.j2 | 2 +- vars/services.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/conf/Caddyfile.j2 b/templates/conf/Caddyfile.j2 index aba426e..bc5075f 100755 --- a/templates/conf/Caddyfile.j2 +++ b/templates/conf/Caddyfile.j2 @@ -186,7 +186,7 @@ not path /css/* /js/* /fonts/* /browserconfig.xml /android-chrome* /favicon* /logo* /lp.svg /robots.txt /safari* /site.webmanifest /pic/* } rate_limit @notstatic {remote.ip} 2r/s 60000 500 - rate_limit @notstatic {remote.ip} 30r/m 300000 500 + rate_limit @notstatic {remote.ip} 45r/m 300000 500 reverse_proxy {{ oracle4_private_ip }}:8883 { transport http {compression off} } diff --git a/vars/services.yml b/vars/services.yml index db8ab1c..fbf8f00 100644 --- a/vars/services.yml +++ b/vars/services.yml @@ -1,10 +1,10 @@ setup: oracle4: - - nitter + - caddy compose: oracle4: - - nitter + - caddy # ----------------------------------------------------------------------------------------------------