From cb96d391cd970bd218b651479b21a04ae6fd1b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 9 Oct 2024 21:58:16 +0200 Subject: [PATCH] Add more filters --- teddycloud/rootfs/etc/nginx/templates/ingress.gtpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teddycloud/rootfs/etc/nginx/templates/ingress.gtpl b/teddycloud/rootfs/etc/nginx/templates/ingress.gtpl index aee1b4a..70312cd 100644 --- a/teddycloud/rootfs/etc/nginx/templates/ingress.gtpl +++ b/teddycloud/rootfs/etc/nginx/templates/ingress.gtpl @@ -27,7 +27,8 @@ server { sub_filter 'fetch("/api/' 'fetch("$http_x_ingress_path/api/'; sub_filter "fetch(`/api/" "fetch(`$http_x_ingress_path/api/"; sub_filter '.concat("/web",' '.concat("$http_x_ingress_path/web",'; - sub_filter 'REACT_APP_TEDDYCLOUD_WEB_BASE:"/web"' 'REACT_APP_TEDDYCLOUD_WEB_BASE:"$http_x_ingress_path/web"'; + sub_filter 'apiGetTeddyCloudApiRaw("/api/' 'apiGetTeddyCloudApiRaw("$http_x_ingress_path/api/'; + 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 'basename:"/web"' 'basename:"$http_x_ingress_path/web"';