From cbba4cc2e6edf736aff298939db04df37177d65e Mon Sep 17 00:00:00 2001 From: Simon L Date: Sat, 17 Jun 2023 20:49:21 +0200 Subject: [PATCH] also compress css and svg files Signed-off-by: Simon L --- Containers/apache/nextcloud.conf | 4 ++-- readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Containers/apache/nextcloud.conf b/Containers/apache/nextcloud.conf index b580cb59..972987a8 100644 --- a/Containers/apache/nextcloud.conf +++ b/Containers/apache/nextcloud.conf @@ -11,9 +11,9 @@ Listen 8000 SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000" - # Enable Brotli compression for js files + # Enable Brotli compression for js, css and svg files - other plain files are compressed by Nextcloud by default - AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript + AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript text/css image/svg+xml BrotliCompressionQuality 0 diff --git a/readme.md b/readme.md index 6a42db60..3b9907f3 100644 --- a/readme.md +++ b/readme.md @@ -29,7 +29,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 files which reduces Nextcloud load times +- Brotli 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!