From cf96db90ad7a2d27c6a1c31966ac1bb480630539 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 22 Sep 2022 11:16:08 -0700 Subject: [PATCH] docs(proxy): update `sub_filter` for subfolder (#3046) [skip ci] The updated `next.js` dependency has a new regex match in the code for `/^\/_next\/data\//`. This `sub_filter` creates invalid regex `/^\/overseerr/_next\/data\//` ```nginx sub_filter '/_next' '/$app/_next'; ``` It needs to be updated to substitute the correct the regex `/^\/overseerr\/_next\/data\//` ```nginx sub_filter '\/_next' '\/$app\/_next'; sub_filter '/_next' '/$app/_next'; ``` --- docs/extending-overseerr/reverse-proxy.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/extending-overseerr/reverse-proxy.md b/docs/extending-overseerr/reverse-proxy.md index 5aa6fd462..84752f7c2 100644 --- a/docs/extending-overseerr/reverse-proxy.md +++ b/docs/extending-overseerr/reverse-proxy.md @@ -138,6 +138,7 @@ location ^~ /overseerr { sub_filter 'href="/"' 'href="/$app"'; sub_filter 'href="/login"' 'href="/$app/login"'; sub_filter 'href:"/"' 'href:"/$app"'; + sub_filter '\/_next' '\/$app\/_next'; sub_filter '/_next' '/$app/_next'; sub_filter '/api/v1' '/$app/api/v1'; sub_filter '/login/plex/loading' '/$app/login/plex/loading';