From e235cec8a3cfe4060a4fda5857ac2bd1fc9bb7b1 Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sun, 23 Aug 2026 19:47:50 +0200 Subject: [PATCH] Fix 404 on static assets behind the regex location block --- docker/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 11f8616..e3792e0 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name style.lvl0.xyz; + server_name _; # behind a reverse proxy; match any Host location / { root /usr/share/nginx/html; @@ -9,6 +9,7 @@ server { } location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ { + root /usr/share/nginx/html; expires 1y; add_header Cache-Control "public, immutable"; }