From db37c3fb1b6f8f36057433b5a2f28647cfd0743a Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 22 Jun 2025 11:00:34 +0200 Subject: [PATCH] Update rootfs/etc/nginx/nginx.conf --- rootfs/etc/nginx/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index a2207e6..0cd423d 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -66,6 +66,12 @@ http { root /var/lib/nginx/html; } + location ~ ^/theme/.*\.(ico|jpg|jpeg|png|webp)$ { + root /var/www/html/public; + add_header Access-Control-Allow-Origin "*"; + try_files $uri =404; + } + # Pass the PHP scripts to PHP-FPM listening on socket location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; @@ -90,12 +96,6 @@ http { expires 5d; } - location ~ ^/theme/.*\.(ico|jpg|jpeg|png|webp)$ { - root /var/www/html/public; - add_header Access-Control-Allow-Origin "*"; - try_files $uri =404; - } - # Deny access to . files, for security location ~ /\. { log_not_found off;