From 01a1b0f7be451c1f7b2c4b404a3a2420744d866f Mon Sep 17 00:00:00 2001 From: pos-ei-don <1822533+pos-ei-don@users.noreply.github.com> Date: Sun, 5 Jul 2026 23:47:48 +0200 Subject: [PATCH] fix(nginx): custom locations take precedence over cached-asset regex Emit custom locations as `location ^~` so a configured Custom Location (pointing at a different upstream) is not overridden by the server-level `Cache Assets` regex location, which otherwise routes its static files (.css/.js/...) to the main upstream -> 404. --- backend/templates/_location.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/templates/_location.conf b/backend/templates/_location.conf index a2ecb166d6..9210d16f5e 100644 --- a/backend/templates/_location.conf +++ b/backend/templates/_location.conf @@ -1,4 +1,4 @@ - location {{ path }} { + location ^~ {{ path }} { {{ advanced_config }} proxy_set_header Host $host;