Update rootfs/etc/nginx/nginx.conf
All checks were successful
docker-build / release (push) Successful in 6s
docker-build / docker-build (push) Successful in 15s

This commit is contained in:
holzi1005 2025-06-22 11:00:34 +02:00
parent c750cba136
commit db37c3fb1b

View file

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