Skip to content

Commit

Permalink
dapr tutorial port and routes fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
  • Loading branch information
willtsai committed Nov 2, 2023
1 parent 54b3d4e commit 7f6f525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
3 changes: 2 additions & 1 deletion samples/dapr/dapr-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
containerPort: 8080
provides: frontendRoute.id
}
}
Expand Down
24 changes: 2 additions & 22 deletions samples/dapr/dapr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
provides: frontendRoute.id
containerPort: 8080
}
}
}
Expand All @@ -65,26 +65,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
routes: [
{
path: '/'
destination: frontendRoute.id
}
]
}
}

resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'statestore'
properties: {
Expand Down

0 comments on commit 7f6f525

Please sign in to comment.