diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index 5ae1c3b..a2207e6 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -90,6 +90,12 @@ 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;