-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dapr tutorial port fix #926
Conversation
Signed-off-by: Will Tsai <[email protected]>
the additional env variable added is per https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-3.1#server-urls-2 |
@@ -59,6 +59,8 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = { | |||
env: { | |||
// An environment variable to tell the frontend container where to find the backend | |||
CONNECTION_BACKEND_APPID: 'backend' | |||
// An environment variable to override the default port that .NET Core listens on | |||
ASPNETCORE_URLS: 'http://*:8080' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it only serve through HTTP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ytimocin -- not sure, but http is the relevant protocol for our tutorial, so I think this should be okay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need HTTP for the tutorial. .NET does both (even in development scenarios).
Thank you for helping make the Radius documentation better!
Please follow this checklist before submitting:
In addition, please fill out the following to help reviewers understand this pull request:
Description
add env var to override the default port
80
that the .NETfrontend
app uses to8080
instead, since port80
is problematic for localhost testing.Auto-generated description
🤖 Generated by Copilot at faaadf2
Summary
🚀🛠️📝
Updated the bicep template for the .NET Core web app to use a different port than the Dapr sidecar. This change supports the tutorial-dapr scenario.
Walkthrough
Issue reference
Fixes: #916