Skip to content

Commit

Permalink
updated template
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Ricci committed Jan 5, 2024
1 parent fb8e290 commit ec39000
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
18 changes: 14 additions & 4 deletions infrastructure/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "1708993666554656460"
"templateHash": "1113178627445816921"
}
},
"parameters": {
Expand Down Expand Up @@ -178,7 +178,7 @@
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "3704398519489867328"
"templateHash": "6229889889626660588"
}
},
"parameters": {
Expand All @@ -190,7 +190,7 @@
},
"apiImage": {
"type": "string",
"defaultValue": "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"
"defaultValue": "ghcr.io/tiaringhio/scanitaextractor:latest"
}
},
"resources": [
Expand Down Expand Up @@ -274,7 +274,17 @@
],
"scale": {
"minReplicas": 0,
"maxReplicas": 1
"maxReplicas": 1,
"rules": [
{
"name": "http-scaler",
"http": {
"metadata": {
"concurrentRequests": "100"
}
}
}
]
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions infrastructure/modules/backend.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ resource api 'Microsoft.App/containerApps@2023-08-01-preview' = {
scale: {
minReplicas: 0
maxReplicas: 1
rules: [
{
name: 'http-scaler'
http: {
metadata: {
concurrentRequests: '100'
}
}
}
]
}
}
}
Expand Down

0 comments on commit ec39000

Please sign in to comment.