diff options
| author | Fernando Serboncini <fserb@tailscale.com> | 2025-10-29 21:27:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-29 21:27:59 -0400 |
| commit | d68513b0dbe352ca03165be35ebc5edd626ac83e (patch) | |
| tree | ee30fe86816b5557a213016b41afc01b4bee0213 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 05d2dcaf49ab0dbbc6fd726e851c7c5bc2139dfa (diff) | |
| download | tailscale-d68513b0dbe352ca03165be35ebc5edd626ac83e.tar.xz tailscale-d68513b0dbe352ca03165be35ebc5edd626ac83e.zip | |
ipn: add support for HTTP Redirects (#17594)
Adds a new Redirect field to HTTPHandler for serving HTTP redirects
from the Tailscale serve config. The redirect URL supports template
variables ${HOST} and ${REQUEST_URI} that are resolved per request.
By default, it redirects using HTTP Status 302 (Found). For another
redirect status, like 301 - Moved Permanently, pass the HTTP status
code followed by ':' on Redirect, like: "301:https://tailscale.com"
Updates #11252
Updates #11330
Signed-off-by: Fernando Serboncini <fserb@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
