switch nextcloud to FPM + Nginx for better static file performance

Replace the all-in-one Apache image with nextcloud:33-fpm and an Nginx
sidecar that serves static assets directly with gzip compression and
cache headers, avoiding the prefork concurrency bottleneck.
This commit is contained in:
2026-03-22 17:00:33 +01:00
parent c0c20a42ed
commit 4329cfd3f2
3 changed files with 94 additions and 12 deletions

View File

@@ -9,14 +9,10 @@
}
nextcloud.t-gstone.de {
encode zstd gzip
reverse_proxy nextcloud:80
reverse_proxy nextcloud-nginx:80
header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
redir /.well-known/carddav /remote.php/dav/ 301
redir /.well-known/caldav /remote.php/dav/ 301
request_body {
max_size 10G
}