Tailscale VPN on PaaS hostings such as railway, render, back4app and etc.
This repository was created as a fork of https://github.com/render-examples/tailscale/ and https://github.com/Andrew-Bekhiet/railway_tailscale_vpn
-
To get started, you should create an account on tailscale, if you already have an account skip to next step
-
Go to you tailscale admin console settings then to keys
-
Click on 'Generate auth key ...'
-
Give you key a description then click 'Generate key' when you are finished
Remember to take a note of the key because you'll see it only once
-
Go to render, choose region and set Docker as a language
-
Set free instance type
-
create TAILSCALE_AUTHKEY variable with your authkey as a value in enviroment variables and deploy.
-
Go to your tailscale machines and approve railway-app as an exit node
-
Disable key expiry for the machine you just deployed
-
Click copy to clipboard, then create a monitor on uptimerobot to keep your service alive 24/7.