From def057e780eea2b08aa4a41f1ad627637c44a435 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 2 Aug 2026 14:40:29 +0200 Subject: [PATCH 1/3] enable zstd and gzip compression, disable brotli Signed-off-by: Zoey --- Containers/apache/Caddyfile | 2 ++ Containers/apache/Dockerfile | 1 - Containers/apache/nextcloud.conf | 8 -------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Containers/apache/Caddyfile b/Containers/apache/Caddyfile index 275dbd1e..a9169a89 100644 --- a/Containers/apache/Caddyfile +++ b/Containers/apache/Caddyfile @@ -25,6 +25,8 @@ http://{$APACHE_HOST}.nextcloud-aio:23973, # For Collabora callback and WOPI req -Via } + encode + # Collabora route /browser/* { reverse_proxy {$COLLABORA_HOST}:9980 diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 755a161c..a56104d7 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -47,7 +47,6 @@ RUN set -ex; \ -e 's/^#\(LoadModule .*mod_authz_core.so\)/\1/' \ -e 's/^#\(LoadModule .*mod_alias.so\)/\1/' \ -e 's/^#\(LoadModule .*mod_mpm_event.so\)/\1/' \ - -e 's/^#\(LoadModule .*mod_brotli.so\)/\1/' \ -e 's/\(LoadModule .*mod_mpm_worker.so\)/#\1/' \ -e 's/\(LoadModule .*mod_mpm_prefork.so\)/#\1/' \ -e 's/\(ScriptAlias \)/#\1/' \ diff --git a/Containers/apache/nextcloud.conf b/Containers/apache/nextcloud.conf index 968f8901..30ee289d 100644 --- a/Containers/apache/nextcloud.conf +++ b/Containers/apache/nextcloud.conf @@ -17,14 +17,6 @@ Listen 8000 - # Compress JS, CSS and SVG responses with Brotli. - # Other plain-text files are already compressed by Nextcloud itself. - # Desktop and mobile sync clients never request JS/CSS/SVG assets. - - AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript text/css image/svg+xml - BrotliCompressionQuality 0 - - # Nextcloud dir DocumentRoot /var/www/html/ From 035782f1f588c9691257de9b13bdec4a4df69473 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 2 Aug 2026 17:45:04 +0200 Subject: [PATCH 2/3] Update readme.md Signed-off-by: Zoey --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5802fe79..b8e2d85c 100644 --- a/readme.md +++ b/readme.md @@ -40,7 +40,7 @@ Included are: - PHP and web server timeouts set to 3600s, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud) (important for big file uploads) - Defaults to a max of 512 MB RAM per PHP process, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud) - Automatic TLS included (by using Let's Encrypt) -- Brotli compression enabled by default for javascript, css and svg files which reduces Nextcloud load times +- zstd/gzip compression enabled by default for javascript, css and svg files which reduces Nextcloud load times - HTTP/2 and HTTP/3 enabled - "Pretty URLs" for Nextcloud are enabled by default (removes the index.php from all links) - Video previews work out of the box and when Imaginary is enabled, many recent image formats as well! From f1e0ffeaac7db58270d34321a01e15b1d24e71d0 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 5 Aug 2026 12:35:35 +0200 Subject: [PATCH 3/3] Update readme.md Co-authored-by: Simon L. Signed-off-by: Zoey --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b8e2d85c..7de9a802 100644 --- a/readme.md +++ b/readme.md @@ -40,7 +40,7 @@ Included are: - PHP and web server timeouts set to 3600s, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud) (important for big file uploads) - Defaults to a max of 512 MB RAM per PHP process, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud) - Automatic TLS included (by using Let's Encrypt) -- zstd/gzip compression enabled by default for javascript, css and svg files which reduces Nextcloud load times +- zstd/gzip compression enabled by default inside caddy inside the apache container - HTTP/2 and HTTP/3 enabled - "Pretty URLs" for Nextcloud are enabled by default (removes the index.php from all links) - Video previews work out of the box and when Imaginary is enabled, many recent image formats as well!