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.
26 lines
340 B
Caddyfile
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
|
|
}
|