Skip to content

fix(traefik): redirect http to https in production - #322

Merged
dargmuesli merged 2 commits into
mainfrom
fix/traefik/redirect-http-to-https-in-production
Oct 27, 2026
Merged

dargmuesli merged 2 commits into
mainfrom
fix/traefik/redirect-http-to-https-in-production

Conversation

@dargmuesli

@dargmuesli dargmuesli commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

In production the reverse proxy's port-80 entry point forwarded requests to the origin services, which answered plain-HTTP requests with a full 200 OK instead of redirecting to HTTPS.
The scheme-redirect middleware that performs the 301 was only attached to the port-80 routers in development.

The middleware definition and all port-80 routers now use the middleware in production as well, and the production overrides of vibetype and tusd, which define their port-80 middleware list, include it in that list too.

@dargmuesli
dargmuesli merged commit a5418cd into main Oct 27, 2026
7 of 8 checks passed
@dargmuesli
dargmuesli deleted the fix/traefik/redirect-http-to-https-in-production branch October 27, 2026 11:51
maevsi-bot pushed a commit that referenced this pull request Oct 27, 2026
## [21.7.2](21.7.1...21.7.2) (2026-10-27)

### Bug Fixes

* **traefik:** redirect http to https in production ([#322](#322)) ([a5418cd](a5418cd))
@maevsi-bot

Copy link
Copy Markdown

🎉 This PR is included in version 21.7.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants