At home with Tailscale
Short version
Заголовок раздела «Short version»Squad in proxy mode on 127.0.0.1:8080, and tailscale serve giving it an HTTPS address on your tailnet, such as fluxer.tail1234.ts.net. Only people on your tailnet can open it. Setting it up takes about 15 minutes.
What this changes
Заголовок раздела «What this changes»- Squad serves plain HTTP on
127.0.0.1:8080, and publishes voice ports 7881 and 7882 on every address of the machine. Keep them closed in your router or your provider’s firewall, and calls between tailnet devices still work. - Tailscale on the machine, with MagicDNS and HTTPS certificates on for your tailnet.
- One
tailscale serveortailscale funnelrule for port 443.
Before you start
Заголовок раздела «Before you start»- Check the requirements.
- In the Tailscale admin console, turn on MagicDNS and HTTPS certificates under DNS.
- Pick one of two routes. With Serve, only devices on your tailnet can use Squad, and calls work between them. With Funnel, anyone can open Squad on the internet, but Funnel only forwards TCP on ports 443, 8443 and 10000, so calls don’t work through it.
Install
Заголовок раздела «Install»-
Install Tailscale on the machine and sign in.
Окно терминала curl -fsSL https://tailscale.com/install.sh | shsudo tailscale upThe Machines page of the admin console shows the machine’s full name, such as
fluxer.tail1234.ts.net, and so doestailscale status --json | grep -m1 DNSNamewithout the trailing dot. This name becomesFLUXER_DOMAIN, and it changes if you rename the tailnet or the machine later. -
Set up Squad with Docker in proxy mode, with the tailnet name as the domain and the machine’s Tailscale address for voice.
fluxer.env FLUXER_DOMAIN=fluxer.tail1234.ts.netFLUXER_EDGE_MODE=proxyFLUXER_LIVEKIT_NODE_IP=100.101.102.103Use the address from
tailscale ip -4. Thendocker psshowshealthy. -
Serve Squad on your tailnet.
Окно терминала sudo tailscale serve --bg 8080tailscale serve statusshowshttps://fluxer.tail1234.ts.net. -
Print the setup token and open the address.
Окно терминала docker compose exec fluxer fluxerd setup-tokenThe setup wizard opens at your tailnet address, where the token creates the first admin account. The mobile and desktop apps need Tailscale running on the phone or computer to connect to an instance that is only on your tailnet.
With rexctl and no proxy
Заголовок раздела «With rexctl and no proxy»rexctl install on Linux with systemd can serve the tailnet name itself, with a certificate from Tailscale and no tailscale serve. When the machine has HTTPS certificates turned on, the address question shows its tailnet name. Before you install, let Squad’s service account ask Tailscale for its certificate.
echo 'TS_PERMIT_CERT_UID=fluxer' | sudo tee -a /etc/default/tailscaledsudo systemctl restart tailscaledsudo rexctl install --runtime systemd --domain fluxer.tail1234.ts.netrexctl skips the public DNS check for the tailnet name, and calls use the machine’s Tailscale address. With Docker, rexctl install picks proxy mode, and you put tailscale serve in front of Squad as in step 3.
Docker without tailscale serve
Заголовок раздела «Docker without tailscale serve»Docker can also get the certificate from Tailscale when the Tailscale socket is mounted into the container. First let user 65532, the account Squad runs as inside the container, ask Tailscale for the machine’s certificate.
echo 'TS_PERMIT_CERT_UID=65532' | sudo tee -a /etc/default/tailscaledsudo systemctl restart tailscaledIn fluxer.env, set the tailnet name and the machine’s Tailscale address and leave proxy mode off. Then add the socket to compose.yaml, next to the fluxer-data volume.
FLUXER_DOMAIN=fluxer.tail1234.ts.netFLUXER_LIVEKIT_NODE_IP=100.101.102.103services: fluxer: volumes: - fluxer-data:/var/lib/fluxer - /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sockPublic with Funnel
Заголовок раздела «Public with Funnel»To let people outside your tailnet in, use sudo tailscale funnel --bg 8080 in step 3. Funnel has bandwidth limits that you can’t change.
Calls don’t work through Funnel, so set FLUXER_LIVEKIT_ENABLED=false, forward ports 7881 and 7882 from your router, or add a voice server on a separate VPS.