Skip to content

Instantly share code, notes, and snippets.

@nshalman
Created July 7, 2022 13:27
Show Gist options
  • Save nshalman/171d27c37fe1fccc359aeb8bf701923c to your computer and use it in GitHub Desktop.
Save nshalman/171d27c37fe1fccc359aeb8bf701923c to your computer and use it in GitHub Desktop.
Tailscale caddyfile with redirect
{
default_bind 127.0.0.1
}
nodename.tailthing-scalething.ts.net {
bind nodename.tailthing-scalething.ts.net
reverse_proxy 127.0.0.1:8080
}
http://nodename {
redir https://nodename.tailthing-scalething.ts.net{uri}
bind nodename.tailthing-scalething.ts.net
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment