From c77276064671f641355120ea87c16b7d88889924 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 23 Dec 2024 12:43:07 +0000 Subject: [PATCH] add: otf font to served files --- roles/nextcloud/templates/nginx-nextcloud.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nextcloud/templates/nginx-nextcloud.conf b/roles/nextcloud/templates/nginx-nextcloud.conf index 5d8b66d..1ef2b21 100644 --- a/roles/nextcloud/templates/nginx-nextcloud.conf +++ b/roles/nextcloud/templates/nginx-nextcloud.conf @@ -117,7 +117,7 @@ server { # Adding the cache control header for js, css and map files # Make sure it is BELOW the PHP block - location ~ \.(?:css|mjs|js|woff2?|svg|gif|map)$ { + location ~ \.(?:css|mjs|js|otf|woff2?|svg|gif|map)$ { try_files $uri /index.php$request_uri; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block";