3 Commits

Author SHA1 Message Date
4a19b6f799 Fix rate limiter configuration
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/tag Pipeline was successful
2025-05-11 12:42:31 +03:00
a36ea5efba Add rate limiter to caddy
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/tag Pipeline was successful
2025-05-11 12:38:04 +03:00
e82bb3c70f Revert "Update php-fpm config"
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/tag Pipeline was successful
ci/woodpecker/tag/build/2 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/tag/tag Pipeline was successful
This reverts commit e62b953a1b.
2025-05-11 11:59:07 +03:00
3 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
# Install Caddy
FROM docker.io/caddy:builder-alpine AS caddy-builder
RUN xcaddy build
RUN xcaddy build \
--with github.com/mholt/caddy-ratelimit
# Install PHP

View File

@@ -6,6 +6,17 @@
}
: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 {

View File

@@ -30,7 +30,7 @@ pm = ondemand
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 1024
pm.max_children = 100
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'