Log inSign up

A personal music streamer with Navidrome

Download the Navidrome release archive into /opt/navidrome, write a short navidrome.toml that points at your music folder, and start it with a systemd unit on port 4533. Nginx with a Let's Encrypt certificate publishes it as https://music.example.net, where the web player and any Subsonic-compatible app can connect.

Topic: Media and streaming · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

Why is Navidrome a good fit for a small VPS?

Navidrome is a single Go binary that uses tens of megabytes of memory and a small SQLite database, so even the smallest plans run it comfortably. Audio needs far less CPU than video: converting a FLAC track to Opus or MP3 for a phone on mobile data costs only a small fraction of one vCPU, which makes on-the-fly transcoding realistic here even without a GPU.

Disk is what grows. A lossless collection takes roughly 30 MB per album, so check the disk figure of each plan on the prices page. Upload only music you have purchased or otherwise have the rights to use.

How do you install the Navidrome binary?

Create a service user and folders, then fetch the latest release archive with FFmpeg for transcoding.

sudo apt update
sudo apt install -y ffmpeg curl jq
sudo useradd --system --home /var/lib/navidrome --shell /usr/sbin/nologin navidrome
sudo install -d -o navidrome -g navidrome /var/lib/navidrome
sudo install -d /opt/navidrome
VER=$(curl -fsSL https://api.github.com/repos/navidrome/navidrome/releases/latest | jq -r .tag_name)
curl -fL -o /tmp/navidrome.tar.gz \
  "https://github.com/navidrome/navidrome/releases/download/${VER}/navidrome_${VER#v}_linux_amd64.tar.gz"
sudo tar -xzf /tmp/navidrome.tar.gz -C /opt/navidrome
/opt/navidrome/navidrome --version

The ${VER#v} expansion strips the leading v from the tag, because the archive names use bare numbers. On an Arm build host, swap amd64 for arm64, although our plans are all x86_64.

What goes in the configuration file?

Navidrome reads a TOML file; keep it beside the data so one folder holds everything.

sudo mkdir -p /srv/music
sudo chown deploy:navidrome /srv/music
sudo chmod 2775 /srv/music
sudo tee /var/lib/navidrome/navidrome.toml >/dev/null <<'EOF'
MusicFolder = "/srv/music"
DataFolder = "/var/lib/navidrome"
Address = "127.0.0.1"
Port = 4533
ScanSchedule = "@every 1h"
BaseUrl = ""
EOF
sudo chown navidrome:navidrome /var/lib/navidrome/navidrome.toml

Binding to 127.0.0.1 keeps the service private until Nginx publishes it. Every option can also be set as an environment variable with the ND_ prefix, such as ND_SCANSCHEDULE, which suits container setups.

How do you run Navidrome under systemd?

A unit file starts the server on boot and restarts it on failure. See systemd services for the meaning of each line.

sudo tee /etc/systemd/system/navidrome.service >/dev/null <<'EOF'
[Unit]
Description=Navidrome music server
After=network-online.target
Wants=network-online.target

[Service]
User=navidrome
Group=navidrome
Type=simple
ExecStart=/opt/navidrome/navidrome --configfile /var/lib/navidrome/navidrome.toml
WorkingDirectory=/var/lib/navidrome
Restart=on-failure
TimeoutStopSec=20
ProtectSystem=full
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now navidrome
systemctl status navidrome --no-pager
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:4533/app/

A 200 from the last command means the web player is being served. Logs are available with journalctl -u navidrome -f.

How do you add HTTPS through Nginx?

Create a DNS record for music.example.net (see DNS records) and proxy it to the local port.

sudo apt install -y nginx certbot python3-certbot-nginx
sudo tee /etc/nginx/sites-available/navidrome >/dev/null <<'EOF'
server {
    listen 80;
    listen [::]:80;
    server_name music.example.net;
    location / {
        proxy_pass http://127.0.0.1:4533;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
    }
}
EOF
sudo ln -s /etc/nginx/sites-available/navidrome /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d music.example.net
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw enable

Port 4533 never needs to be opened in the firewall. More proxy options are in the Nginx reverse proxy guide.

How do you upload music and create the first account?

Copy albums in with rsync from your computer, keeping an Artist/Album folder layout:

rsync -avP ./Music/ deploy@198.51.100.24:/srv/music/

Navidrome groups tracks by their embedded tags, not by folder names, so tidy tags before uploading with a tagger such as MusicBrainz Picard. Open https://music.example.net; the first visitor is asked to create the admin account, so do this straight after the proxy goes live. Then trigger a scan from the activity menu or wait for the hourly schedule, and add regular users from the Users page.

Which apps can play from Navidrome?

Navidrome implements the Subsonic API, so many existing players connect to it: enter the server URL, user name and password. On Android and iOS there are several Subsonic clients with offline caching; desktop players exist for Linux, macOS and Windows. In the web UI, each user can define a transcoding profile per player, for example Opus at 128 kbit/s for a phone, which cuts outgoing transfer substantially compared with lossless.

How do you upgrade and back up Navidrome?

Upgrading means replacing the binary: stop the service, extract the new archive over /opt/navidrome with the same commands as the install, then start it again and check --version. Database migrations run automatically on first start.

To back up, stop the unit and copy /var/lib/navidrome, which holds the database, playlists, play counts and configuration. The music itself should already exist on your computer; if not, sync it back regularly with rsync.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-1enough memory for a music library server1 vCPU, 1 GB RAM, 25 GB NVMe$3.60/mo$43.20 for 12 months
S1-2more SSD space for lossless files1 vCPU, 2 GB RAM, 55 GB SSD$6.00/mo$72.00 for 12 months

Questions about Navidrome music streaming

Does Navidrome stream video?

No, it focuses on music only. For films and series use Jellyfin or another video server.

Which audio formats are supported?

Common formats such as MP3, FLAC, Opus, Ogg Vorbis, AAC/M4A, WAV and others readable by FFmpeg. Unsupported formats in a client are converted on the fly if a transcoding profile is set.

Why do new albums not appear?

Either the scan has not run yet or the files lack tags. Start a scan from the web UI and check journalctl -u navidrome for read errors, which often point to wrong ownership on /srv/music.

Can I share a playlist with someone without an account?

Yes, once sharing is enabled with EnableSharing = true in the config, users can create share links for tracks, albums or playlists.

Is the tiny 1 GB plan enough?

For Navidrome alone, yes, memory is rarely the limit. The disk size is what decides, so pick the plan by the size of your collection.