1 parent 03a6163 commit be95a51Copy full SHA for be95a51
1 file changed
infra/main.bicep
@@ -100,6 +100,7 @@ module apiApp 'modules/container-app.bicep' = if (!empty(apiImage)) {
100
{ name: 'AzureOpenAI__Endpoint', value: azureOpenAIEndpoint }
101
{ name: 'AzureOpenAI__DeploymentName', value: azureOpenAIDeploymentName }
102
{ name: 'APPLICATIONINSIGHTS_CONNECTION_STRING', value: monitoring.outputs.appInsightsConnectionString }
103
+ { name: 'Cors__AllowedOrigins__0', value: !empty(webCustomDomain) ? 'https://${webCustomDomain}' : '' }
104
], !empty(apiKey) ? [{ name: 'API_KEY', secretRef: 'api-key' }] : [])
105
additionalSecrets: !empty(apiKey) ? [{ name: 'api-key', value: apiKey }] : []
106
}
0 commit comments