You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a --promote-https flag to the tailscale serve command, which automatically redirects HTTP requests on port 80 to HTTPS.
What is the impact of not solving this?
Without this feature, running serve in default mode only listens on HTTPS (port 443), so any requests made to HTTP (port 80) result in a “connection refused” error.
Anything else?
No.
The text was updated successfully, but these errors were encountered:
Added a new `--promote-https` flag to `tailscale
serve`, allowing HTTP requests to be redirected to
HTTPS. This feature helps in scenarios where users
access `http://mynode`, which will now
automatically redirect to
`https://mynode.my-tailnet.ts.net`. The flag can
be toggled to enable or disable this redirect
behavior. Also included necessary changes to
manage redirect handlers for HTTP-to-HTTPS
promotion.
Closestailscale#13400
Signed-off-by: Shayne Sweeney <shayne@tailscale.com>
Looks like @bradfitz originally thought this could be a good idea when implementing this. I've just gone looking for this, as I'd like to be able to have foo in my browser end up on https://foo.tailfoo.ts.net/, and I don't think that's quite possible without either having the application or another reverse proxy do that redirect for me.
What are you trying to do?
I want requests to http://node or http://node.tailnet.ts.net to automatically redirect to https://node.tailnet.ts.net for improved ergonomics.
How should we solve this?
Add a --promote-https flag to the tailscale serve command, which automatically redirects HTTP requests on port 80 to HTTPS.
What is the impact of not solving this?
Without this feature, running serve in default mode only listens on HTTPS (port 443), so any requests made to HTTP (port 80) result in a “connection refused” error.
Anything else?
No.
The text was updated successfully, but these errors were encountered: