diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 88d6d30..1365c15 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,18 +9,6 @@ } nextcloud.t-gstone.de { - encode zstd gzip { - match { - header Content-Type text/* - header Content-Type application/javascript* - header Content-Type application/json* - header Content-Type application/xml* - header Content-Type application/rss* - header Content-Type application/atom* - header Content-Type image/svg* - } - } - reverse_proxy nextcloud-nginx:80 header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" diff --git a/nextcloud/nginx.conf b/nextcloud/nginx.conf index 7796ddd..8cfba1c 100644 --- a/nextcloud/nginx.conf +++ b/nextcloud/nginx.conf @@ -20,6 +20,13 @@ server { application/javascript mjs; } + gzip on; + gzip_vary on; + gzip_comp_level 4; + gzip_min_length 256; + gzip_proxied any; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml; + client_max_body_size 10G; client_body_timeout 300s; fastcgi_buffers 64 4K;