From f6b28064409ab71d6446b610f2dc6a7066c1f488 Mon Sep 17 00:00:00 2001 From: Hugo MATHIEU Date: Sun, 10 Mar 2024 16:17:31 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=B1=20Fix=20Azure=20infra=20con?= =?UTF-8?q?figs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/main.bicep | 10 +++++++--- infra/prod.parameters.json | 3 --- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index c621087..41bf04d 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -37,7 +37,7 @@ param keyVaultBaseName string = 'kv-botabordelv2' param lavalinkConfig object = { server: { password: 'youshallnotpass' - address: 'lavalink' + address: '0.0.0.0' port: '2333' } } @@ -242,7 +242,7 @@ resource containerAppLavalink 'Microsoft.App/containerapps@2023-08-01-preview' = value: lavalinkConfig.server.password } { - name: 'SERVER_ADDERSS' + name: 'SERVER_ADDRESS' value: lavalinkConfig.server.address } { @@ -329,7 +329,11 @@ resource containerAppDiscordBot 'Microsoft.App/containerapps@2023-08-01-preview' } { name: 'Lavalink__Host' - value: containerAppLavalink.properties.outboundIpAddresses[0] + value: containerAppLavalink.name + } + { + name: 'Lavalink__Scheme' + value: 'http' } { name: 'ConnectionStrings__AppConfig' diff --git a/infra/prod.parameters.json b/infra/prod.parameters.json index 81019ef..2b9a0d0 100644 --- a/infra/prod.parameters.json +++ b/infra/prod.parameters.json @@ -4,9 +4,6 @@ "parameters": { "environment": { "value": "PROD" - }, - "discordBotToken": { - "value": "" } } } \ No newline at end of file