Update rootfs/etc/nginx/nginx.conf
All checks were successful
docker-build / release (push) Successful in 5s
docker-build / webserver (push) Successful in 10s
docker-build / cron (push) Successful in 13s

This commit is contained in:
holzi1005 2025-06-22 12:10:37 +02:00
parent 21865b2684
commit 173ee39e69

View file

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