From a221060661dee87ca20f4a17d9c0774b10b022e1 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Tue, 27 Aug 2024 10:09:09 +0200 Subject: Serve webp files properly for Nextcloud 30 https://github.com/nextcloud/documentation/commit/64cfff1db89b437e758bfc6975dff5983d2cef0d --- tw/services/nextcloud.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tw/services') diff --git a/tw/services/nextcloud.scm b/tw/services/nextcloud.scm index 177af535..0a78fcaf 100644 --- a/tw/services/nextcloud.scm +++ b/tw/services/nextcloud.scm @@ -269,7 +269,7 @@ opcache.revalidate_freq=120 ("fastcgi_pass unix:/var/run/php" ,phpver "-fpm.sock;"))))) ; Match php-fpm-configuration (nginx-location-configuration - (uri "~ \\.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$") + (uri "~ \\.(?:css|js|mjs|svg|gif|ico|png|jpg|png|webp|wasm|tflite|map|ogg|flac)$") (body '("try_files $uri /index.php$request_uri;" "add_header Cache-Control \"public, max-age=15778463, immutable\";"))) (nginx-location-configuration -- cgit v1.2.3