An proof of concept Elixir-based chat app for your Tailscale network that uses Tailscale to authenticate clients.
This app uses is based in the libtailscale NIF
wrapper,
gen_tailscale and
tailscale_transport to make
Phoenix/Bandit expose the application directly to your Tailscale network.
Everything in this chain of packages should be considered proof of concept at
this point and should not be used for anything important. Especially
gen_tailscale, which has been constructed by crudely hacking the original
gen_tcp module to use libtailscale and could use a total rewrite at some
point.
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit tschat:4000 from your browser.