Skip to content
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

Fix starter template's http launch profile #4141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afscrome
Copy link
Contributor

@afscrome afscrome commented May 10, 2024

The aspire sample template currently ships with a broken http launch profile. Running the template dotnet run --launch-profile http results in an error.

The 'applicationUrl' setting must be an https address unless the 'ASPIRE_ALLOW_UNSECURED_TRANSPORT' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details

This PR fixes this by specifying the ASPIRE_ALLOW_UNSECURED_TRANSPORT by default to make this work.

An alternative solution could be to remove the http profile completely as it feels wrong to ship with a profile that is broken by default.

Microsoft Reviewers: Open in CodeFlow

The aspire sample template currently ships with a broken http launch profile.  Running the template `dotnet run --launch-profile http` results in an error.

```
The 'applicationUrl' setting must be an https address unless the 'ASPIRE_ALLOW_UNSECURED_TRANSPORT' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details
```

This PR fixes this by specifying the `ASPIRE_ALLOW_UNSECURED_TRANSPORT` by default to make this work.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant