Skip to content

Say that dotnet run redirects HTTP to HTTPS - #61

Merged
stphnwlsh merged 1 commit into
mainfrom
fix/run-md-https
Nov 7, 2026
Merged

stphnwlsh merged 1 commit into
mainfrom
fix/run-md-https

Conversation

@stphnwlsh

@stphnwlsh stphnwlsh commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

RUN.md said the app only redirects HTTP to HTTPS outside local and Development. Only HSTS is off there; UseHttpsRedirection always runs, so under dotnet run http://localhost:8080 redirects to https://localhost:8081, and a plain curl gets an empty 307. RUN.md now says what dotnet run listens on, that HTTP redirects, and how to trust the development certificate. The behaviour stays as it is.

The same change in the other templates: Minimal API, MCP, Web API. The docs site follows in LeanMeanCleanApps/leanmeancleanapps.github.io#21.

Related issues

None.

Type of change

  • Bug fix
  • New feature
  • Breaking change (the generated solution or template parameters change in a way existing users will notice)
  • Refactoring or clean-up
  • Documentation
  • Build, pipeline or dependency update

Shared layers

  • This only touches the Presentation layer of this template.
  • This touches the Application or Infrastructure layers, tests, pipeline or repository setup, so it needs to be carried across all five templates.

Checklist

  • dotnet build and dotnet test pass locally with no warnings.
  • I added or updated tests, and line coverage stays at or above 95%.
  • I updated the README or docs where behaviour changed.
  • If this changes how we do something, I updated the matching skill in .agents/skills.
  • I checked the template still installs and creates a working solution (see CONTRIBUTING.md).

RUN.md said the app only redirects outside local and Development, but only
HSTS is off there. Under dotnet run, http://localhost:8080 redirects to
https://localhost:8081, so RUN.md now says so and how to trust the
development certificate.
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Build Pipeline

✅ Ready to merge. Every stage passed.

Stage Result Details
Build 🟢 Passed Version 2026.11.06.209-pr-61 · Template package 232 KB
Test 🟢 Passed 236 passed · 0 failed · 0 skipped · Template installs, builds and passes its tests
Coverage 🟢 Passed 100% (760 of 760 lines) · Needs 95%
Static Analysis 🟢 Passed No open CodeQL alerts
Dependency Review 🟢 Passed 0 vulnerable packages · 0 licence problems
Container Scan 🟢 Passed Image starts and answers · No open Trivy alerts

Commit 4303b01 · Full run

stphnwlsh added a commit to LeanMeanCleanApps/CleanMinimalApi that referenced this pull request Nov 7, 2026
## Summary

RUN.md said the app only redirects HTTP to HTTPS outside `local` and
`Development`. Only HSTS is off there; `UseHttpsRedirection` always
runs, so under `dotnet run` <http://localhost:8080> redirects to
<https://localhost:8081>, and a plain `curl` gets an empty 307. RUN.md
now says what `dotnet run` listens on, that HTTP redirects, and how to
trust the development certificate. The behaviour stays as it is.

The same change in the other templates:
[MCP](LeanMeanCleanApps/CleanModelContextProtocol#61),
[GraphQL](LeanMeanCleanApps/CleanGraphQLApi#61),
[Web API](LeanMeanCleanApps/CleanWebApi#55). The
docs site follows in LeanMeanCleanApps/leanmeancleanapps.github.io#21.

## Related issues

None.

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change (the generated solution or template parameters
change in a way existing users will notice)
- [ ] Refactoring or clean-up
- [x] Documentation
- [ ] Build, pipeline or dependency update

## Shared layers

- [x] This only touches the Presentation layer of this template.
- [ ] This touches the Application or Infrastructure layers, tests,
pipeline or repository setup, so it needs to be carried across all five
templates.

## Checklist

- [ ] `dotnet build` and `dotnet test` pass locally with no warnings.
- [ ] I added or updated tests, and line coverage stays at or above 95%.
- [x] I updated the README or docs where behaviour changed.
- [ ] If this changes how we do something, I updated the matching skill
in `.agents/skills`.
- [ ] I checked the template still installs and creates a working
solution (see CONTRIBUTING.md).
stphnwlsh added a commit to LeanMeanCleanApps/CleanWebApi that referenced this pull request Nov 7, 2026
## Summary

RUN.md said the app only redirects HTTP to HTTPS outside `local` and
`Development`. Only HSTS is off there; `UseHttpsRedirection` always
runs, so under `dotnet run` <http://localhost:8080> redirects to
<https://localhost:8081>, and a plain `curl` gets an empty 307. RUN.md
now says what `dotnet run` listens on, that HTTP redirects, and how to
trust the development certificate. The behaviour stays as it is.

The same change in the other templates: [Minimal
API](LeanMeanCleanApps/CleanMinimalApi#81),
[MCP](LeanMeanCleanApps/CleanModelContextProtocol#61),
[GraphQL](LeanMeanCleanApps/CleanGraphQLApi#61).
The docs site follows in
LeanMeanCleanApps/leanmeancleanapps.github.io#21.

## Related issues

None.

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change (the generated solution or template parameters
change in a way existing users will notice)
- [ ] Refactoring or clean-up
- [x] Documentation
- [ ] Build, pipeline or dependency update

## Shared layers

- [x] This only touches the Presentation layer of this template.
- [ ] This touches the Application or Infrastructure layers, tests,
pipeline or repository setup, so it needs to be carried across all five
templates.

## Checklist

- [ ] `dotnet build` and `dotnet test` pass locally with no warnings.
- [ ] I added or updated tests, and line coverage stays at or above 95%.
- [x] I updated the README or docs where behaviour changed.
- [ ] If this changes how we do something, I updated the matching skill
in `.agents/skills`.
- [ ] I checked the template still installs and creates a working
solution (see CONTRIBUTING.md).
@stphnwlsh
stphnwlsh merged commit 664f366 into main Nov 7, 2026
13 checks passed
@stphnwlsh
stphnwlsh deleted the fix/run-md-https branch November 7, 2026 02:44
stphnwlsh added a commit to LeanMeanCleanApps/CleanModelContextProtocol that referenced this pull request Nov 7, 2026
## Summary

RUN.md said the app only redirects HTTP to HTTPS outside `local` and
`Development`. Only HSTS is off there; `UseHttpsRedirection` always
runs, so under `dotnet run` <http://localhost:8080> redirects to
<https://localhost:8081>, and a plain `curl` gets an empty 307. RUN.md
now says what `dotnet run` listens on, that HTTP redirects, and how to
trust the development certificate. The behaviour stays as it is.

The same change in the other templates: [Minimal
API](LeanMeanCleanApps/CleanMinimalApi#81),
[GraphQL](LeanMeanCleanApps/CleanGraphQLApi#61),
[Web API](LeanMeanCleanApps/CleanWebApi#55). The
docs site follows in LeanMeanCleanApps/leanmeancleanapps.github.io#21.

## Related issues

None.

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change (the generated solution or template parameters
change in a way existing users will notice)
- [ ] Refactoring or clean-up
- [x] Documentation
- [ ] Build, pipeline or dependency update

## Shared layers

- [x] This only touches the Presentation layer of this template.
- [ ] This touches the Application or Infrastructure layers, tests,
pipeline or repository setup, so it needs to be carried across all five
templates.

## Checklist

- [ ] `dotnet build` and `dotnet test` pass locally with no warnings.
- [ ] I added or updated tests, and line coverage stays at or above 95%.
- [x] I updated the README or docs where behaviour changed.
- [ ] If this changes how we do something, I updated the matching skill
in `.agents/skills`.
- [ ] I checked the template still installs and creates a working
solution (see CONTRIBUTING.md).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant