Skip to content

Commit 6c25a4c

Browse files
committed
adding missing port
1 parent e71aca7 commit 6c25a4c

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

azure-deploy/with-app-registration/azuredeploy.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
{
123123
"name": "NUXT_SESSION_PASSWORD",
124124
"value": "[concat(uniqueString(resourceGroup().id),'-',uniqueString(resourceGroup().id),'-',uniqueString(resourceGroup().id))]"
125+
},
126+
{
127+
"name": "NITRO_PORT",
128+
"value": "3000"
125129
}
126130
]
127131
}

azure-deploy/with-token/azuredeploy.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
{
113113
"name": "NUXT_SESSION_PASSWORD",
114114
"value": "[concat(uniqueString(resourceGroup().id),'-',uniqueString(resourceGroup().id),'-',uniqueString(resourceGroup().id))]"
115+
},
116+
{
117+
"name": "NITRO_PORT",
118+
"value": "3000"
115119
}
116120
]
117121
}

infra/app/copilot-metrics-viewer.bicep

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ param exists bool
1010
@secure()
1111
param appDefinition object
1212

13+
param port int = 3000
14+
1315
var appSettingsArray = filter(array(appDefinition.settings), i => i.name != '')
1416
var secrets = map(filter(appSettingsArray, i => i.?secret != null), i => {
1517
name: i.name
@@ -71,7 +73,7 @@ resource app 'Microsoft.App/containerApps@2023-05-02-preview' = {
7173
configuration: {
7274
ingress: {
7375
external: true
74-
targetPort: 3000
76+
targetPort: port
7577
transport: 'auto'
7678
}
7779
registries: [
@@ -99,7 +101,7 @@ resource app 'Microsoft.App/containerApps@2023-05-02-preview' = {
99101
}
100102
{
101103
name: 'NITRO_PORT'
102-
value: '3000'
104+
value: '${port}'
103105
}
104106
],
105107
env,

infra/main.bicep

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ param githubClientSecret string
2222
param sessionPassword string
2323
@secure()
2424
param githubPAT string
25-
2625
@allowed(['enterprise', 'organization', 'team'])
2726
param githubScope string
28-
2927
@description('The name of the GitHub organization, required when scope is "organization"')
3028
param githubOrg string
3129
@description('The name of the GitHub team, required when scope is "team"')

0 commit comments

Comments
 (0)