From e6b9eba70a84c52b42e3bf55fe4db82d95192830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 9 Oct 2024 23:08:03 +0200 Subject: [PATCH] Add more filters --- teddycloud/rootfs/etc/nginx/servers/ingress.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teddycloud/rootfs/etc/nginx/servers/ingress.conf b/teddycloud/rootfs/etc/nginx/servers/ingress.conf index 7102d96..5aa1815 100644 --- a/teddycloud/rootfs/etc/nginx/servers/ingress.conf +++ b/teddycloud/rootfs/etc/nginx/servers/ingress.conf @@ -34,11 +34,13 @@ server { sub_filter 'Lq="/web/assets/' 'Lq="$http_x_ingress_path/web/assets/'; sub_filter 'REACT_APP_TEDDYCLOUD_WEB_BASE:"/web"' 'REACT_APP_TEDDYCLOUD_WEB_BASE:"$http_x_ingress_path/web"'; sub_filter 'PUBLIC_URL:"/web"' 'PUBLIC_URL:"$http_x_ingress_path/web"'; - sub_filter 'p="/web/"' 'p="$http_x_ingress_path/web/"'; + sub_filter 'EventSource("/api/sse")' 'EventSource("$http_x_ingress_path/api/sse")'; + sub_filter 'p="/web/"' 'p="$http_x_ingress_path/web/"'; sub_filter 'basename:"/web"' 'basename:"$http_x_ingress_path/web"'; sub_filter 'd="/api/' 'd="$http_x_ingress_path/api/'; sub_filter 'n="/api/' 'n="$http_x_ingress_path/api/'; - sub_filter 'concat("","/api/' 'concat("","$http_x_ingress_path/api/'; + sub_filter 'b="/api/' 'b="$http_x_ingress_path/api/'; + sub_filter 'concat("","/api/' 'concat("","$http_x_ingress_path/api/'; sub_filter 'path:"/api/' 'path:"$http_x_ingress_path/api/'; sub_filter 'path:"/v1/' 'path:"$http_x_ingress_path/v1/'; sub_filter 'path:"/reverse/v1/time' 'path:"$http_x_ingress_path/reverse/v1/time';