From a4062fc57cd57b9ac8f4e1331de7baa23b804736 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Fri, 13 Feb 2026 23:00:54 +0100
Subject: [PATCH] Update docs: multi-instance Gateway support
Co-authored-by: Cursor
---
AZURE_SETUP.md | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/AZURE_SETUP.md b/AZURE_SETUP.md
index 9fcdac1..aff51ab 100644
--- a/AZURE_SETUP.md
+++ b/AZURE_SETUP.md
@@ -105,17 +105,36 @@ az containerapp registry set \
### 3.1 Environment Variable im Gateway
-In `env_int.env` (oder Azure App Service Configuration):
+Der Bot Service ist **multi-instance-fähig**: Ein Bot kann mit allen Gateway-Instanzen (main, int, dev) arbeiten.
+In **jeder** Gateway-Instanz die gleiche Bot URL konfigurieren:
+
+**env_main.env:**
```
-TEAMSBOT_BROWSER_BOT_URL=https://teams-browser-bot.happysky-12345.westeurope.azurecontainerapps.io
+TEAMSBOT_BROWSER_BOT_URL=https://teams-browser-bot..azurecontainerapps.io
```
+**env_int.env:**
+```
+TEAMSBOT_BROWSER_BOT_URL=https://teams-browser-bot..azurecontainerapps.io
+```
+
+**env_dev.env:**
+```
+TEAMSBOT_BROWSER_BOT_URL=https://teams-browser-bot..azurecontainerapps.io
+```
+
+**Wie es funktioniert:**
+1. Gateway sendet Join-Request an Bot mit `gatewayWsUrl` Parameter
+2. `gatewayWsUrl` enthält die volle WebSocket-URL zurück zum aufrufenden Gateway
+3. Bot verbindet sich zur richtigen Gateway-Instanz (main/int/dev)
+
### 3.2 Gateway neu deployen
```bash
-# Push to int branch triggers deployment
-git push origin int
+# Push to respective branch triggers deployment
+git push origin main # für main
+git push origin int # für int
```
---