Running ReadyRoam with Tailscale
This guide is for you if you have no domain name, no public IP address, or
can't open ports on your router (a mobile or fibre connection behind CGNAT,
a rented flat, a shared network). It gives your server a proper https
address without any of that.
Tailscale provides a private
network between your own devices. It also hands out https certificates and
can put a server on the public internet through its own relay. Nothing on your
router changes. Check the current plans for personal-use limits and business pricing.
It covers two ways of using it. Pick one:
| A. Private (Tailscale Serve) | B. Public (Tailscale Funnel) | |
|---|---|---|
| Who can reach the server | Only devices on your Tailscale network | Anyone on the internet (ReadyRoam still requires authentication) |
| Others need Tailscale installed | Yes, on every phone that syncs | No |
| Exposed to the internet | No | Yes, through Tailscale's relay |
| Good for | You and a few people you trust, such as family | Friends or a group who won't install anything |
You can start with A and switch to B later: the server and the app settings stay the same, only the address changes if you switch on Funnel for a different name.
What you need
- A running ReadyRoam server from Running a ReadyRoam
server, steps 1–4. It answers on
http://localhost:8080on the machine it runs on. Don't worry aboutPUBLIC_URLyet; it is set in step 4 below. - A Tailscale account (sign in with Google, Microsoft, Apple or GitHub at login.tailscale.com).
- The ReadyRoam app on a phone.
1. Install Tailscale on the server machine
On Linux (Raspberry Pi, NAS, home server):
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
tailscale up prints a link. Open it on any device and approve the machine.
Other platforms have an installer on
tailscale.com/download. Synology, QNAP and
Unraid have a Tailscale package too.
Optional: give the machine a short name in the admin console (under
Machines), because the name becomes part of the address. roam gives
roam.<your-tailnet>.ts.net.
2. Turn on HTTPS in the admin console
Once per Tailscale network:
- Open the DNS page of the admin console.
- Make sure MagicDNS is on.
- Under HTTPS Certificates, click Enable HTTPS.
Certificates are issued by Let's Encrypt, which publishes every certificate it issues. That means the full name (
roam.<your-tailnet>.ts.net) shows up in public certificate lists. The server stays unreachable for outsiders in option A, but the name is visible. In the admin console you can generate a random tailnet name if you'd rather not have yours in there.
3. Put the server behind Tailscale
On the server machine, from any folder:
Option A: private
sudo tailscale serve --bg --https=443 http://localhost:8080
Option B: public
First allow Funnel for the machine. The first time you run the command,
Tailscale prints a link that switches it on in your access controls (it adds
the funnel attribute for you). Then:
sudo tailscale funnel --bg --https=443 http://localhost:8080
Funnel only listens on ports 443, 8443 and 10000. Use 443 so the address has no port in it.
Either way, see what you got:
tailscale serve status
It prints the address, something like https://roam.tailnet-name.ts.net.
Open that in a browser on a device that can reach it (in option A: one with
Tailscale on). https://roam.tailnet-name.ts.net/healthz should answer
{"status":"ok"}.
The setting survives reboots (--bg runs it in the background). To undo it:
tailscale serve reset or tailscale funnel reset.
4. Tell the server its address
Edit .env next to docker-compose.yml:
PUBLIC_URL=https://roam.tailnet-name.ts.net
TRUST_PROXY=true
PUBLIC_URL is what invite links, password reset links and single sign-on
are built from. TRUST_PROXY=true makes the sign-in limits count each
visitor separately; without it, everyone behind the Tailscale relay looks
like one visitor. Apply it:
docker compose up -d
If you were testing with PORT=8080 open on the LAN and no longer want that,
change the port mapping in docker-compose.yml to "127.0.0.1:8080:8080".
This blocks direct LAN and public access to port 8080. Local processes on the host can still reach it. The Docker setup guide already uses this local-only binding.
5. Connect the phones
Option A (private). On every phone that should sync:
- Install the Tailscale app and sign in to the same account. For other people, share your server instead of handing out your login: in the admin console, open the machine, choose Share, and send them the link. They accept it from their own Tailscale account, and the server shows up for them under its full name.
- Keep Tailscale switched on while syncing. The app syncs when the phone can reach the server, and doesn't otherwise. It still works offline as always.
- On iPhone only one VPN can be active at a time. If you use another VPN, Tailscale and it take turns.
Option B (public). Nothing to install; the address works from anywhere.
Then, in the app: More → Server & sync, enter
https://roam.tailnet-name.ts.net and sign in or create an account (see
step 5 of the setup guide). This works in
TestFlight and Google Play builds too, because the certificate is a real one.
Single sign-on
Single sign-on works with either option,
using the address from step 3 as PUBLIC_URL. The callback to register with
the provider is https://roam.tailnet-name.ts.net/auth/sso/<id>/callback. The
server itself needs internet access to reach the provider, and so does the
phone's browser. In option A the phone also needs Tailscale on during
sign-in, because the provider sends it back to your server's address.
Good to know
- The address is fixed to the machine name. If you rename the machine or the tailnet, the address changes, every phone has to be pointed at the new one, and old invite links stop working. Pick a name you'll keep before you invite anyone.
- Funnel is public. Keep
REGISTRATION=closed(the default) and create accounts with the admin tool, unless you want anyone with the address to be able to sign up. The server limits failed sign-ins, but treat the password quality like any internet-facing service. - Funnel bandwidth is limited by Tailscale. Test your expected attachment sizes and traffic before relying on it for a group.
- Servers in Docker only. If the server and Tailscale run on the same
machine (as above), nothing in the compose file changes. If you'd rather run
Tailscale itself in a container next to the server, Tailscale's own
Docker guide covers it; point the
serve configuration at
http://server:8080. - Backups and updates are unaffected: see Day-to-day.
Troubleshooting
| Symptom | Likely cause |
|---|---|
tailscale serve says HTTPS isn't enabled | Step 2: enable HTTPS certificates in the admin console. |
| The address doesn't load on the phone (option A) | Tailscale isn't on or not signed in to the same account; or the machine is off or asleep. |
| The address doesn't load from outside (option B) | tailscale funnel status should list it. Funnel wasn't allowed for the machine, or the command was run on a port other than 443, 8443 or 10000. |
| Certificate warning in the browser | Do not bypass the warning. Check the exact machine hostname, HTTPS enablement and certificate status. Retry after issuance completes. |
/healthz works but the app can't sign in | PUBLIC_URL still has the old http:// address, or docker compose up -d wasn't run after changing .env. |
| Sign-in is blocked for everyone after a few tries | TRUST_PROXY isn't true, so all visitors count as one. |
| Links in invite emails point to the wrong address | PUBLIC_URL (step 4). |
If you can't use Tailscale at all, the other routes to an https address
(your own domain with Caddy, or a rented VPS) are described in step 7 of the
setup guide.
Reference
Tailscale Funnel command reference. Use tailscale funnel status to inspect public exposure; tailscale serve status shows Serve configuration.