Files
nextcloud-selfhosted/caddy/Caddyfile
Thomas Gräfenstein 0088c11d5e enable Caddy response compression to fix slow page loads
Caddy was decompressing nginx's gzip responses and sending them
uncompressed to the browser, causing core-common.js (5.7MB) to
take 25s to download. Adding encode zstd gzip compresses it to
1.3MB at the edge.
2026-03-22 17:43:24 +01:00

26 lines
340 B
Caddyfile

{
servers {
timeouts {
read_header 10s
idle 60s
}
max_header_size 16KB
}
}
nextcloud.t-gstone.de {
encode zstd gzip
reverse_proxy nextcloud-nginx:80
header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
request_body {
max_size 10G
}
}
git.t-gstone.de {
reverse_proxy gitea:3000
}