Project
CompletedPsysonic Orbit
Setting Up Psysonic Orbit With a Self-Hosted Navidrome Library

While I was evaluating Navidrome and apps that run with it, I came across Psysonic, a cross-platform app built for sitting on top of Navidrome. I like the app, it looks fresh and is quick. I’ve got just over 25,000 tracks of lossless audio in my Roon library, so speed matters.
There is however a feature of Psysonic called Orbit, which took my eye. It allows you and friends to listen to the same self-hosted music library together in a synced session. Sounds great, right? At the very least it sounds intriguing.
According to the website:
Orbit is Psysonic’s shared listening mode. One person hosts the music, others join through an invite link and listen in sync. Guests can suggest tracks; the host decides what gets added to the queue unless auto-approval is enabled.
Does Orbit need an external server or extra account? No. Orbit uses your existing Navidrome server and regular playlists as transport — no relay, no hosted sync service, no extra account.
What does Orbit require? Everyone needs access to the same Navidrome server with their own Navidrome user. For friends outside your network, the server must be reachable publicly.
I can picture it now. Friends, all sitting around the living room on sofas and comfy chairs, eating pizza, laughing and teasing my music collection, shoving, playfully pinching and loud shrieks visiting old songs. Everyone taking turns to add music to the queue, pumping up the volume, cringe dancing…
Unless you have friends and family over to your place and you can listen to music together, you’ll need to resolve one issue. For guests not in the same space you need to set up remote access, some kind of relay because Orbit has no relay server.
Psysonic’s Orbit feature works by writing the session state into a Navidrome playlist and having each guest poll it. That means every participant’s Psysonic app needs to be able to talk to your Navidrome server directly, which means I need to grant them secure access to my local server.
Methods to access Navidrome externally
Here are a few of the common methods to make your server reachable from the outside world.
VPN (most secure)
Connect your phone or laptop to a private network like Tailscale or WireGuard and your device acts as if it is on your home Wi-Fi. You don’t need to open any router ports. This setup is best reserved for trusted family and friends rather than the general public, but it can be cumbersome as every user needs to download the Tailscale app, create an account, and accept your invitation. This is clunky.
Reverse proxy with SSL
Use a tool like Nginx Proxy Manager, Caddy, or a Cloudflare Tunnel. This gives you a secure https:// web address that you can then map a custom domain to or use a free DDNS (Dynamic DNS) service.
Port forwarding (least secure)
Forward port 4533 (the default Navidrome port) directly on your router. This exposes your server to the internet. Warning: you should only do this if you use HTTPS, as plain HTTP sends your password in the clear.
I opted to setup a reverse proxy, so I’ll walk through the steps I used and decisions I made.
Architecture
No inbound ports are opened on the router, cloudflared only makes outbound connections to Cloudflare’s edge, and Cloudflare proxies public HTTPS traffic back through that tunnel to the container on the LAN.
Just a sidenote before it causes any confusion. I’m using a shared network stack in Docker, so I thought I would write a little as to why it is designed this way.
The “sidecar” pattern:
My Navidrome composer file builds three containers, Tailscale, Navidrome and Cloudflared. Cloudflared and Navidrome are hitching a ride on the Tailscale container’s network stack. This means all three containers share the exact same localhost interface. Tailscale here was the original setup I had before using Cloudflared as I setup a reverse proxy for my personal use, accessing Navidrome from outside the house. I’ll show a compose snippet later on.
Zero exposed ports:
Because Cloudflared is in the same network namespace as Navidrome, it can route traffic directly to localhost:4533. You don’t have to expose port 4533 to your local home router at all.
Dual routing (the hybrid benefit):
My server gets the best of both worlds: public HTTP access via the Cloudflare Tunnel for friends, alongside secure, encrypted management access via my private Tailscale network for my use. Tailscale basically owns the network so this is shared with Cloudflared and Navidrome, hence why you see it on the diagram.
Domain
Update your nameservers
If you already have a domain you can use, then it’s straightforward. Move your domain’s DNS to Cloudflare. For this example I’ll use orbit.yourdomain.com. Update the nameservers on your domain. Follow the Cloudflare guide. Wait for propagation, this can take a few minutes to a few hours. Once this is active Cloudflare becomes authoritative for the whole domain.
Install cloudflared on the Navidrome machine
Install the cloudflared daemon on whatever host runs Navidrome (a Pi, NAS, server, etc.). On Debian/Ubuntu: add Cloudflare’s package repo and apt install cloudflared, or grab the binary release directly for your architecture from Cloudflare’s GitHub releases.
This maps ~/.cloudflared on the host’s home folder, so you’ll need to create this first, run these commands on the host machine:
mkdir -p ~/.cloudflared
chown -R 65532:65532 ~/.cloudflared
docker run -it --rm -v ~/.cloudflared:/home/nonroot/.cloudflared cloudflare/cloudflared:latest tunnel login
docker run -it --rm -v ~/.cloudflared:/home/nonroot/.cloudflared cloudflare/cloudflared:latest tunnel create navidrome
# output
Created tunnel navidrome with id <cloudflared_id>
docker run -it --rm -v ~/.cloudflared:/home/nonroot/.cloudflared cloudflare/cloudflared:latest tunnel route dns navidrome orbit.yourdomain.com
# output
INF Added CNAME orbit.yourdomain.com which will route to this tunnel tunnelID=<cloudflared_id>
Create ~/.cloudflared/config.yml to store credentials, tunnel, and add domains and services to an ingress rule. It will look something like this sans tailscale unless you’ve deployed it.
tunnel: <cloudflared_id>
credentials-file: /home/nonroot/.cloudflared/<cloudflared_id>.json
ingress:
- hostname: orbit.yourdomain.com
service: http://tailscale:4533
- service: http_status:404
Add the cloudflared service to your existing docker-compose.yml:
Secrets and tokens are stored in a .env file outside the composer file.
# 1. The cloudflare tunnel client
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
command: tunnel run
volumes:
- ~/.cloudflared:/home/nonroot/.cloudflared
depends_on:
- navidrome
The moving parts
- Domain on Cloudflare’s nameservers. The zone (e.g.
yourdomain.com) has to be fully delegated to Cloudflare, not just a subdomain. Cloudflare’s free/pro tiers can’t act as authoritative DNS for a single subdomain on its own (that’s an Enterprise-only “subdomain setup” feature), so the whole domain’s nameservers need switching at the registrar, not just adding NS records inside an existing DNS zone. - A named Cloudflare Tunnel, created with
cloudflared tunnel create, routed to a hostname (orbit.yourdomain.com) withcloudflared tunnel route dns. cloudflaredrunning as a container alongside Navidrome in the samedocker-compose.yml, so it can reach Navidrome by Docker service name instead oflocalhost.- An ingress rule in
cloudflared’sconfig.ymlmapping the public hostname to Navidrome’s internal address.
Gotchas worth knowing before you start
cloudflared’s Docker image runs as a non-root user (nonroot, UID65532), not root. If you bind-mount a host directory for the credentials/cert, it needs to be owned by that UID (chown -R 65532:65532) or the login step will fail with a silent-looking “permission denied” oncert.pem.- Check what actually owns your Docker network. If Navidrome runs with
network_mode: "service:<other-container>"(for example, routed through a Tailscale sidecar container), it has no independent network identity —cloudflaredcan’t resolve it by its own service name. Point the ingress rule at whichever container actually owns the port binding instead. - A “Bad gateway / Host Error” from Cloudflare, with everything else green, almost always means
cloudflareditself can’t reach your app container, it’s a Docker networking/naming issue, not a Cloudflare or DNS problem.docker exec -it cloudflared wget -qO- http://<service>:<port>from inside thecloudflaredcontainer is the fastest way to confirm. - Don’t put Cloudflare Access in front of the tunnel hostname. It injects a browser-based login challenge that breaks Subsonic-API clients like Psysonic, which can’t authenticate through it. Navidrome’s own per-user accounts are the auth layer here.
Using it with Orbit
Once https://orbit.yourdomain.com resolves and serves the Navidrome login page from outside your network:
- Create a dedicated Navidrome account for your guest (not a shared login, Orbit expects each participant to have their own).
- Point their Psysonic client at your public URL and have them log in.
- On your end: Psysonic Orbit → Create a session, then send them the invite link. They paste it into Psysonic and it logs them in and syncs the session automatically.
Note: Psysonic matches the server configuration byte-for-byte to make sure all users are authenticated against the exact same instance. If you have yourself setup on your local instance with a local profile (http://192.xxx.xx.xx:4533), and your guests are coming in on remote profiles on the remote instance (https://orbit.yourdomain.com) the Orbit link will fail.
When Psysonic generates the Orbit session cryptographic payload it encodes against your local endpoint, whereas your guest is coming in remotely, so there’s a mismatch.
The fix: ensure both you and your guest are using the exact same root endpoint structure in your Psysonic server setup profiles. If your proxy doesn’t preserve the exact base path Navidrome expects, real-time shared playback states will drop. [1] (https://github.com/navidrome/navidrome/discussions/5395).
You may also need to remove any connection settings that use your local Navidrome instance, this is because from my experience Psysonic can get confused about which active token to pull when generating the Orbit session payload. By completely purging the local profile I forced the app to use my public endpoint, aligning the internal tokens. It did take some time figuring out why my guest couldn’t join a session I had started, but we got there in the end.
Result
A fully self-hosted, zero-inbound-ports setup: your music library never leaves your own storage, Cloudflare only ever sees encrypted proxy traffic, and friends anywhere in the world can join a synced listening session against your own library.
I think the value comes from being able to freely socialise with your friends physically round the house, eating, drinking, and having a laugh at my music library.
But if that’s not possible maybe try having a video chat channel open while you listen to the music.