agrinman / tunnelto

Expose your local web server to the internet with a public URL.
https://tunnelto.dev
MIT License
2.11k stars 114 forks source link

Allow any value for gossip protocol DNS discovery domain #54

Open mkjpryor opened 3 years ago

mkjpryor commented 3 years ago

Currently, the gossip_dns_host is derived from the FLY_APP_NAME environment variable.

This makes it almost impossible to use the gossip protocol in an environment other than Fly, despite the implementation being pretty generic and only requiring DNS.

By allowing the gossip_dns_host to be specified in full and falling back to the current derivation from FLY_APP_NAME, it should allow other implementations of a distributed system. For instance, headless services in Kubernetes could be used to facilitate the gossip protocol.

agrinman commented 3 years ago

Yes I agree, happy to take a look at any PRs for this