1. Caddy version (caddy version
):
2.4.5
2. How I run Caddy:
a. System environment:
Docker 19.03.6
Ubuntu 19.10
b. Command:
Deployed using Docker Stack.
c. Service/unit/compose file:
version: "3.7"
services:
server:
image: slothcroissant/caddy-cloudflaredns:2.4.5
hostname: server
working_dir: /app
volumes:
- caddy:/data
- caddy_config:/config
ports:
- mode: host
protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
deploy:
mode: global
volumes:
caddy:
caddy_config:
d. My complete Caddyfile or JSON config:
{
email hello@example.com
servers {
timeouts {
read_body 10s
read_header 10s
}
max_header_size 64kb
}
}
:443 {
log
root * ./public
encode zstd gzip
@web {
path *
not file
}
reverse_proxy @web web:3000
request_body {
max_size 20MB
}
tls {
on_demand
}
}
3. The problem I’m having:
Sometimes our server just stop responding more requests. As you can see on the following image a suddenly drop of requests per minute. If I restart the Caddy server, it goes back to normal peak again. This behavior was not happening with Caddy version 1. How can I solve this problem?