From 6e7b571946bb150f7a3b2c994ba40ef428db69dd Mon Sep 17 00:00:00 2001 From: yusing Date: Sat, 25 Oct 2025 23:31:22 +0800 Subject: [PATCH] feat(rules): add regex for image and font file paths in webui presets --- internal/route/rules/presets/webui.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/route/rules/presets/webui.yml b/internal/route/rules/presets/webui.yml index 96f7ea0b..b3bc0842 100644 --- a/internal/route/rules/presets/webui.yml +++ b/internal/route/rules/presets/webui.yml @@ -5,6 +5,7 @@ on: | !path regex("(_next/static|_next/image|favicon.ico).*") !path glob("/api/v1/auth/*") + !path regex("[A-Za-z0-9_-]+\.(svg|png|jpg|jpeg|gif|ico|webp|woff2?|eot|ttf|otf)(\?.+)?") !path /api/v1/version do: require_auth - name: proxy to backend