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 ``` ---