From 173ee39e697b3289640fa4a77f177214bb2219a3 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 22 Jun 2025 12:10:37 +0200 Subject: [PATCH] Update rootfs/etc/nginx/nginx.conf --- rootfs/etc/nginx/nginx.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index 0cd423d..138ccfd 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -57,7 +57,7 @@ http { index index.php index.html; location / { - try_files $uri /index.php$is_args&$args; + try_files $uri /index.php$is_args$args; } # Redirect server error pages to the static page /50x.html @@ -66,9 +66,11 @@ http { root /var/lib/nginx/html; } - location ~ ^/theme/.*\.(ico|jpg|jpeg|png|webp)$ { - root /var/www/html/public; - add_header Access-Control-Allow-Origin "*"; + location ^~ /theme/ { + alias /var/www/html/public/theme/; + add_header 'Access-Control-Allow-Origin' '*' always; + expires 30d; + access_log off; try_files $uri =404; }