Self-hostingPlatforms
At home with Tailscale
Short version
Section titled "Short version"Fluxer 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
Section titled "What this changes"- Fluxer 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
Section titled "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 Fluxer, and calls work between them. With Funnel, anyone can open Fluxer on the internet, but Funnel only forwards TCP on ports 443, 8443 and 10000, so calls don't work through it.
Install
Section titled "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 Fluxer 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.net FLUXER_EDGE_ MODE= proxy FLUXER_LIVEKIT_ NODE_IP= 100.101.102.103 Use the address from
tailscale ip -4. Thendocker psshowshealthy. -
Serve Fluxer 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
Section titled "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 Fluxer'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 Fluxer as in step 3.
Docker without tailscale serve
Section titled "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 Fluxer 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
Section titled "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.