Skip to content

Commit

Permalink
Add base address configuration for HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
nenad0707 committed Jun 7, 2024
1 parent 0af0394 commit 03df6dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TodoApi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ConnectionStrings": {
"Default": ""
},
"ApiUrl": "https://localhost:7213/api",
"ApiUrl": "",
"Serilog": {
"MinimumLevel": {
"Default": "Information",
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/module/appService.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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' = {
Expand Down

0 comments on commit 03df6dc

Please sign in to comment.