File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ param keyVaultName string = ''
13
13
param managedIdentity bool = !empty (keyVaultName )
14
14
param targetPort int = 80
15
15
param allowedOrigins array = []
16
+ param transport string = 'auto'
17
+ param allowInsecure bool = false
16
18
17
19
@description ('CPU cores allocated to a single container instance, e.g. 0.5' )
18
20
param containerCpuCoreCount string = '0.5'
@@ -32,7 +34,8 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = {
32
34
ingress : {
33
35
external : external
34
36
targetPort : targetPort
35
- transport : 'auto'
37
+ transport : transport
38
+ allowInsecure : allowInsecure
36
39
corsPolicy : {
37
40
allowedOrigins : empty (allowedOrigins ) ? ['*' ] : allowedOrigins
38
41
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ var tags = { 'azd-env-name': environmentName }
74
74
var finalOpenAiUrl = empty (openAiUrl ) ? 'https://${openAi .outputs .name }.openai.azure.com' : openAiUrl
75
75
var useAzureAISearch = !useQdrant
76
76
var azureSearchService = useAzureAISearch ? searchService .outputs .name : ''
77
- var qdrantUrl = useQdrant ? '${qdrant .outputs .uri }:443' : ''
77
+ var qdrantUrl = useQdrant ? ( qdrantPort == 6334 ? replace ( '${qdrant .outputs .uri }:80' , 'https' , 'http' ) : '${ qdrant . outputs . uri }: 443') : ''
78
78
79
79
// Organize resources in a resource group
80
80
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
@@ -322,6 +322,9 @@ module qdrant './core/host/container-app.bicep' = if (useQdrant) {
322
322
}] : [])
323
323
imageName : !empty (qdrantImageName ) ? qdrantImageName : 'docker.io/qdrant/qdrant'
324
324
targetPort : qdrantPort
325
+ allowInsecure : (qdrantPort == 6334 ? true : false )
326
+ // gRPC needs to be explicitly set for HTTP2
327
+ transport : (qdrantPort == 6334 ? 'HTTP2' : 'auto' )
325
328
}
326
329
}
327
330
You can’t perform that action at this time.
0 commit comments