Nginx is closer to the origin, so compressing there avoids an extra hop. Removes the Caddy encode block for Nextcloud and adds gzip in nginx with level 4 targeting text, CSS, JS, JSON, XML, SVG.
29 lines
527 B
Caddyfile
29 lines
527 B
Caddyfile
{
|
|
servers {
|
|
timeouts {
|
|
read_header 10s
|
|
idle 60s
|
|
}
|
|
max_header_size 16KB
|
|
}
|
|
}
|
|
|
|
nextcloud.t-gstone.de {
|
|
reverse_proxy nextcloud-nginx:80
|
|
|
|
header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
header Referrer-Policy "no-referrer"
|
|
header X-Content-Type-Options "nosniff"
|
|
header X-Frame-Options "SAMEORIGIN"
|
|
header X-Permitted-Cross-Domain-Policies "none"
|
|
header X-Robots-Tag "noindex, nofollow"
|
|
|
|
request_body {
|
|
max_size 10G
|
|
}
|
|
}
|
|
|
|
git.t-gstone.de {
|
|
reverse_proxy gitea:3000
|
|
}
|