Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying on Render #87

Open
olivier-thatch opened this issue Oct 12, 2023 · 2 comments
Open

Deploying on Render #87

olivier-thatch opened this issue Oct 12, 2023 · 2 comments

Comments

@olivier-thatch
Copy link

We use Render as our host. I tried deploying the Docker image for golink as a private service on Render, however it's not quite working.

I think it's because Docker services on Render do not have full networking capabilities. Render's team provides a sample script for running the Tailscale daemon here. The script uses the --tun=userspace-networking and --socks5-server=localhost:1055 flags and sets the ALL_PROXY environment variable to socks5://localhost:1055/.

I don't know enough about Tailscale or networking to say what exactly would be needed to make Golink work on Render, but AFAICT there is currently no way to pass custom arguments supported by the standalone Tailscale daemon like --tun to the Tailscale client embedded in the Golink service anyway (I think this is what #79 is requesting).

Happy to provide more details about the exact behavior I'm observing when trying to deploy on Render.

@willnorris
Copy link
Member

golink uses the tsnet library, so there is no separate tailscale daemon... it's just part of the golink process. tsnet always uses userspace networking, so you don't need to do anything special for that. We would, however, need to add a way to instruct it to use a socks5 proxy. tsnet has support for that, we would just need to wire it up in golink. Very doable, so I'll leave this open to come back to when I've got some free cycles.

@willnorris
Copy link
Member

err... the Render example looks like it's instructing other processes to use Tailscale's socks5 proxy? That shouldn't be relevant for golink. I'll setup a Render account and test myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants