The dashboard is meant to be reached through a Cloudflare Tunnel plus
Cloudflare Access (see Security), so port 8080 can stay closed in
the firewall. The installer does not set this up; cloudflared runs as its own
systemd service, outside the three services of the
native install. Ingest (RTMP/SRT) and
outputs never go through the tunnel, so restarting cloudflared only
interrupts dashboard/API access.
- Create the tunnel in Cloudflare Zero Trust → Networks → Tunnels →
Create a tunnel (type Cloudflared). Copy the tunnel token from the
install command it shows (the long string after
--token). - Add a public hostname to the tunnel, e.g.
restream.example.com, with serviceHTTP→localhost:8080. - Protect it with Cloudflare Access: Zero Trust → Access → Applications → add a self-hosted application for that hostname with an allow policy for your team. Without this the hostname is open to the internet and only the dashboard password stands in the way.
- Install
cloudflaredfrom the Cloudflare package repository (or the.debfrom its GitHub releases). - Store the token in a root-only environment file rather than on the
command line. Do not use
cloudflared service install <token>: it puts the token inExecStart, where every local user can read it viaps//proc/<pid>/cmdlineand the world-readable unit file.sudo install -d -m 0750 /etc/cloudflared sudo sh -c 'umask 077; printf "TUNNEL_TOKEN=%s\n" "<paste-token-here>" > /etc/cloudflared/tunnel.env'cloudflared tunnel runreads theTUNNEL_TOKENenvironment variable itself, so no--tokenflag is needed. - Create the unit
/etc/systemd/system/cloudflared.service:[Unit] Description=Cloudflare Tunnel client After=network-online.target Wants=network-online.target [Service] TimeoutStartSec=15 Type=notify EnvironmentFile=/etc/cloudflared/tunnel.env ExecStart=/usr/bin/cloudflared --no-autoupdate tunnel run Restart=on-failure RestartSec=5s [Install] WantedBy=multi-user.target - Tell the app it is behind a proxy. In
/etc/bunryu/bunryu.jsonadd"trust_proxy": 1and runsudo systemctl restart bunryu.service. Without it every dashboard user appears to come from the tunnel's address: they share one login rate-limit bucket (5 failures a minute), so one person's typos can lock out the others, and the logs show only that address. The installer keeps this value when you update. See Configuration. - Start it and check:
sudo systemctl daemon-reload sudo systemctl enable --now cloudflared journalctl -u cloudflared -n 20 --no-pager # look for "Registered tunnel connection" ps -eo args | grep '[c]loudflared' # the token must not appear here
To rotate the token, generate a new one in the Zero Trust dashboard, update
/etc/cloudflared/tunnel.env, and sudo systemctl restart cloudflared. Treat
the token as compromised (and rotate it) if it was ever printed in a log or
terminal, or was previously passed on the command line.
Installing the dashboard as an app
In Chrome or Edge, open the dashboard over HTTPS (the tunnel hostname) and use
the install icon in the address bar, or the menu's Install Bunryu. It opens
in its own window without browser chrome and gets a launcher icon. It is the
same dashboard: you still log in, and it needs the server to be reachable (there
is no offline mode). Plain http:// is installable only on localhost, so a
dashboard reached by IP and port does not offer it.