Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4a19b6f799
|
|||
a36ea5efba
|
|||
e82bb3c70f
|
@@ -1,6 +1,7 @@
|
|||||||
# Install Caddy
|
# Install Caddy
|
||||||
FROM docker.io/caddy:builder-alpine AS caddy-builder
|
FROM docker.io/caddy:builder-alpine AS caddy-builder
|
||||||
RUN xcaddy build
|
RUN xcaddy build \
|
||||||
|
--with github.com/mholt/caddy-ratelimit
|
||||||
|
|
||||||
|
|
||||||
# Install PHP
|
# Install PHP
|
||||||
|
@@ -6,6 +6,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:8080 {
|
:8080 {
|
||||||
|
rate_limit {
|
||||||
|
distributed
|
||||||
|
zone dynamic {
|
||||||
|
key {client_ip}
|
||||||
|
events 20
|
||||||
|
window 5s
|
||||||
|
jitter 0.1
|
||||||
|
}
|
||||||
|
log_key
|
||||||
|
}
|
||||||
|
|
||||||
root * /phpbb/www
|
root * /phpbb/www
|
||||||
|
|
||||||
php_fastcgi unix//run/php-fpm.sock {
|
php_fastcgi unix//run/php-fpm.sock {
|
||||||
|
@@ -30,7 +30,7 @@ pm = ondemand
|
|||||||
; forget to tweak pm.* to fit your needs.
|
; forget to tweak pm.* to fit your needs.
|
||||||
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
||||||
; Note: This value is mandatory.
|
; 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.
|
; The number of seconds after which an idle process will be killed.
|
||||||
; Note: Used only when pm is set to 'ondemand'
|
; Note: Used only when pm is set to 'ondemand'
|
||||||
|
Reference in New Issue
Block a user