Enabling Traefik HTTPS redirect middleware breaks websockets #9032
Closed
ryansburgoyne
announced in
Announcements
Replies: 1 comment
-
Realized this makes more sense as an issue: #9035 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Yesterday, I installed Coder OSS on my Kubernetes cluster. It installed fine, but the CLI commands all failed and I couldn't connect to any workspaces.
I finally figured out the problem. I had configured the ingress for accessing Coder with a Traefik middleware to redirect to HTTPS:
This resulted in a bunch of attempts to reach URLs starting with
https://wss://
.I removed the middleware, but this meant that users wouldn't be automatically redirected to HTTPS. So I worked around that by proxying through Cloudflare and enabling "Always Use HTTPS" there.
I don't know if this is a Traefik problem (I couldn't find any way to fix it on that end) or something that can be handled in Coder, but I thought I'd share my experience in case it's something that can be fixed.
Beta Was this translation helpful? Give feedback.
All reactions