From 3668760f1e0246905f98802a6396664f7ac66caa Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Thu, 17 Oct 2024 11:12:27 +0200 Subject: [PATCH] Proxy feedback request to mw-backend servers Signed-off-by: Benoit Donneaux --- client/src/public/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/public/.htaccess b/client/src/public/.htaccess index 75133756..ff4e25b4 100644 --- a/client/src/public/.htaccess +++ b/client/src/public/.htaccess @@ -2,6 +2,12 @@ AddType application/wasm .wasm RewriteEngine On +RewriteCond %{HTTP_HOST} "=stage.winden.app" +RewriteRule "^(v\d+)/feedback$" "https://feedback.stage.mw.leastauthority.com/$1/feedback" [P,L] + +RewriteCond %{HTTP_HOST} "=winden.app" +RewriteRule "^(v\d+)/feedback$" "https://feedback.mw.leastauthority.com/$1/feedback" [P,L] + RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [L]