blumeops/fly/fly.toml
Erich Blume bca4c2bede
Some checks failed
Deploy Fly.io Proxy / deploy (push) Failing after 1m33s
Expose Tailscale WireGuard UDP port on Fly proxy
Enable direct peer-to-peer WireGuard connections by pinning tailscaled
to port 41641 and exposing it as a UDP service. Without this, all
traffic routes through Tailscale DERP relays causing 20+ second
latency. Requires dedicated IPv4 (allocated: 168.220.82.221).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 09:17:03 -07:00

33 lines
598 B
TOML

app = "blumeops-proxy"
primary_region = "sjc"
[build]
[[vm]]
memory = "512mb"
[deploy]
strategy = "bluegreen"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1
[[http_service.checks]]
grace_period = "15s"
interval = "10s"
method = "GET"
path = "/healthz"
timeout = "5s"
# Expose Tailscale's WireGuard port so direct peer-to-peer connections can
# establish instead of falling back to DERP relay. Requires a dedicated IPv4.
[[services]]
internal_port = 41641
protocol = "udp"
[[services.ports]]
port = 41641