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";