This is my attempt to run a webapp
python -m http.server 8000 --bind 0.0.0.0 on my home machine (Mac mini) and serve it on the public Internet using Caddy as a reverse proxy to my local machine over encrypted mesh VPN (Tailscale)
- Follow this article and set an ephemeral Tailscale key as a secret in Fly, using
flyctl secrets set TAILSCALE_AUTHKEY="tskey-<key>"
- Put all these files in a folder and run
- Make sure to modify the domain name and IP/port in
Caddyfile. Since Fly.io handles HTTPS certificates, we don't need Caddy to do this.
This is not currently working. When this app boots up, it never gets into a healthy state and the
flyctl logs does not provide a helpful message.