Two routes
Plex arranges access from outside through your Plex account. Navidrome has no account service, so the route is yours to choose and set up. Navidrome charges nothing for it.
| Route | How it works | Suits you if |
|---|---|---|
| A private network | An app on the server and on each of your devices joins them into one private, encrypted network. Nothing is opened to the internet. | The listeners are you and your household, on devices that can run the app. |
| Your own HTTPS address | A domain name points at your home, and a reverse proxy on the server gives it an encrypted address that works from anywhere. | You want it to work on any device with no extra app, or you share the server with people outside the house. |
You can run both. Start with the first if you are unsure. It is quicker and exposes nothing.
Route 1, a private network
Tailscale is the common choice. It builds a private network between your own devices, encrypted with WireGuard, and its Personal plan is free for personal use. Check its pricing page for the current limits.
- Install Tailscale on the server and sign in.
- Install it on each device you listen on and sign in with the same account.
- In Tailscale's list of machines, find the server's name. With MagicDNS, which is on by default, it looks like
server.example.ts.net. - In Lagu, use that name as the server address, as in
http://server.example.ts.net:4533.
Lagu shows its note about unencrypted addresses for anything that starts with http://. Inside a private network like this one the traffic is already encrypted between your devices, which is the case the note allows for. If you would rather have an https:// address anyway, Tailscale can issue a certificate for the server's name and serve Navidrome on it.
tailscale serve 4533 That needs HTTPS switched on in Tailscale's admin console first, and its serve page covers running it in the background. The address is then https://server.example.ts.net with no port.
One address now works at home and away, since Tailscale connects devices directly when they share a network. The limit is that a device has to be able to run Tailscale and have it switched on. If your router can run a WireGuard VPN itself, that gives the same result with the WireGuard app on each device.
Route 2, your own HTTPS address
This route makes an address like https://music.example.com that reaches your server from anywhere. It has four parts.
- A domain name. Any registrar will do. Create a record for a name such as
musicthat points at your home's public IP address. If that address changes, your registrar or router can keep the record updated with dynamic DNS. - Two ports forwarded. In your router, forward ports 80 and 443 to the server.
- A reverse proxy. It answers on those ports, gets a certificate for the name, and passes requests to Navidrome. Caddy does all of that from a file three lines long.
- The address in Lagu. Use
https://music.example.comas the server address.
music.example.com {
reverse_proxy localhost:4533
} Caddy gets and renews the certificate by itself, provided the name points at your server and both ports reach it. Nginx Proxy Manager does the same job through a web page, and Traefik suits a server already running many containers. Navidrome works behind any of them with no special settings.
Keeping a public server safe
A server with a public address is found by automated scanners sooner or later. That is normal, and a few habits take care of it.
- Strong passwords for every user. Navidrome limits repeated sign-in attempts by default, which slows guessing and does not replace a good password.
- Keep Navidrome updated. Release 0.64.1 was a security release with five fixes, and 0.65.0 fixed ten more. The update is two commands, shown in the setup guide.
- Turn off what you do not use. Sharing, which makes public links to albums and playlists, is on by default. One line in the compose file switches it off.
environment:
ND_ENABLESHARING: "false" Leave Navidrome's own sign-in as the only one. A proxy that puts its own login page in front of the whole server blocks apps, because an app cannot fill in a web form. Lagu signs in to Navidrome directly with your username and password and talks to the paths under /rest/, /api/ and /auth/. If you run a single sign-on service, Navidrome's authentication page shows how to leave the app paths out of it.
Local and remote in Lagu
A Navidrome server in Lagu can have two addresses. The main one is the address that works from everywhere. The second, Local address, is the one that only works at home.
| Field | Put here | Example |
|---|---|---|
| Server address | The away address from route 1 or route 2. | https://music.example.com |
| Local address (optional) | The server's address on your home network. | http://192.168.1.20:4533 |
Lagu uses the local address whenever it answers and the main one the rest of the time. At home that keeps the music on your own network.
Before Lagu sends a sign-in to a local address, it checks without one that the address answers as the same version of Navidrome. If the address turns out to be a different server, or does not answer, nothing is saved for it. When that happens while you are adding the server, Lagu adds the server without its local address and tells you.
You can fill in both when you add the server, except on an Android phone, where the local one is added afterwards. On any device you can add it later in Settings, on the server's connection page. That page also shows which address is in use and has a Test connection button.
If you typed an address with no https:// or http:// in front, Lagu tries https first and sends no sign-in while it tries. If that fails it offers http:// with the note about unencrypted addresses, and you choose whether to go on.
Lagu Remote is separate
Lagu Remote, where your phone controls Lagu on a computer or TV, needs nothing on this page. Away from home that goes through Lagu Relay, which carries the remote-control messages and never the music. The music still comes from your server over one of the routes above.
Credits and sources
This guide leans on other people's work. Each project below is its own, with its own license and its own documentation, and theirs is the one to trust if it and this page ever disagree.
- Navidrome security documentation
The advice to put Navidrome behind a reverse proxy with SSL, the login rate limit, and the other settings named here.
- Tailscale
The private network in route 1. Its docs cover MagicDNS names, HTTPS certificates and the serve command.
- Caddy Apache-2.0
The reverse proxy in route 2. Its Automatic HTTPS page explains what it needs from your domain and your router.
- WireGuard
The VPN that Tailscale is built on, and an option on its own if your router can run it.