From 2d16f194119256d21d2de065e5840d813f6f2d79 Mon Sep 17 00:00:00 2001 From: Trance-0 <60459821+Trance-0@users.noreply.github.com> Date: Mon, 10 Nov 2025 14:59:11 -0600 Subject: [PATCH] Update nginx.conf Another issue solved by AI? --- docker/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index eb72ae6..139581e 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -20,7 +20,7 @@ http { } # Decide where to send /_pagefind* based on the page that made the request - map $http_referer $pagefind_upstream { + map $http_referer $load_upstream { default http://notenextra-cse; ~*://[^/]+/Math(?:/|$) http://notenextra-math; ~*://[^/]+/CSE(?:/|$) http://notenextra-cse; @@ -56,10 +56,10 @@ http { access_log off; } - # Send all Pagefind assets (/_pagefind.js and /_pagefind/*) to the chosen app + # Send all next or additional assets (/_pagefind.js and /_pagefind/*) to the chosen app # ^~ /_pagefind matches both "/_pagefind.js" and "/_pagefind/..." - location ^~ /_pagefind { - proxy_pass $pagefind_upstream; # leaves URI intact (/_pagefind.js, /_pagefind/manifest.json, etc.) + location ^~ /_(.*)$ { + proxy_pass $load_upstream; # leaves URI intact (/_pagefind.js, /_pagefind/manifest.json, etc.) proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;