diff --git a/TodoApi/appsettings.json b/TodoApi/appsettings.json index 4f41faf..d3a7566 100644 --- a/TodoApi/appsettings.json +++ b/TodoApi/appsettings.json @@ -7,7 +7,7 @@ "ConnectionStrings": { "Default": "" }, - "ApiUrl": "https://localhost:7213/api", + "ApiUrl": "", "Serilog": { "MinimumLevel": { "Default": "Information", diff --git a/infrastructure/module/appService.bicep b/infrastructure/module/appService.bicep index 2bc4b9f..f4ff4a9 100644 --- a/infrastructure/module/appService.bicep +++ b/infrastructure/module/appService.bicep @@ -34,6 +34,10 @@ var requiredSettings = [ name: 'ConnectionStrings__Default' value: sqlDatabaseConnectionString } + { + name: 'ApiUrl' + value: 'https://${appServiceName}.azurewebsites.net' + } ] resource appService 'Microsoft.Web/sites@2021-02-01' = {