Skip to content

Commit

Permalink
Fix some errors found in scenario: frontend + backend + mongodb.
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Nov 7, 2024
1 parent dd46ca9 commit 5a56b35
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cli/azd/resources/scaffold/templates/resources.bicept
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ var {{bicepName .Name}}Env = map(filter({{bicepName .Name}}AppSettingsArray, i =

module {{bicepName .Name}} 'br/public:avm/res/app/container-app:0.8.0' = {
name: '{{bicepName .Name}}'
dependsOn: [
{{- if .DbCosmosMongo}}
cosmos
{{- end}}
]
params: {
name: '{{.Name}}'
{{- if ne .Port 0}}
Expand All @@ -221,6 +226,12 @@ module {{bicepName .Name}} 'br/public:avm/res/app/container-app:0.8.0' = {
'https://{{.Name}}.${containerAppsEnvironment.outputs.defaultDomain}'
{{- end}}
]
allowedMethods: [
'GET'
'PUT'
'POST'
'DELETE'
]
}
{{- end}}
scaleMinReplicas: 1
Expand Down Expand Up @@ -343,7 +354,7 @@ module {{bicepName .Name}} 'br/public:avm/res/app/container-app:0.8.0' = {
{{- range $i, $e := .Frontend.Backends}}
{
name: '{{upper .Name}}_BASE_URL'
value: 'https://{{.Name}}.internal.${containerAppsEnvironment.outputs.defaultDomain}'
value: 'https://{{.Name}}.${containerAppsEnvironment.outputs.defaultDomain}'
}
{{- end}}
{{- end}}
Expand Down

0 comments on commit 5a56b35

Please sign in to comment.