Navidrome
Videos
Overview: Navidrome on Ubuntu 24.04 LTS on Azure: overview (watch on YouTube)
Launch and log in: Navidrome on Ubuntu 24.04 LTS on Azure: launch and log in (watch on YouTube)
Deep Dive: Navidrome on Ubuntu 24.04 LTS on Azure: deep dive (watch on YouTube)
Overview
Navidrome is an open-source, self-hosted music streaming server. It streams your personal music collection from anywhere through a modern in-browser web player or any Subsonic-compatible mobile or desktop app. It scans the audio files that you copy into its library and presents your albums, artists and playlists with cover art. It also provides on-the-fly transcoding through ffmpeg and a Subsonic-compatible API that many player apps already support.
This SecureAnyCloud image serves Navidrome 0.62.0 behind an nginx reverse proxy on a hardened Ubuntu 24.04 LTS base, patched at build time. The server listens only on the loopback interface (127.0.0.1:4533), and nginx serves it on port 80.
The image is secure by default. It ships with no administrator account and no media, so the first time you open it, you create your own admin with your own password. No shared or default login ships in the image.
What you get:
- Navidrome 0.62.0 served behind nginx, managed by systemd
- The Navidrome web player and Subsonic-compatible API on
:80 - No default administrator, so you create your own admin on the first visit
- ffmpeg for on-the-fly transcoding to any bitrate or format
- The server bound to
127.0.0.1:4533only, never exposed directly to the network - A dedicated Azure data disk at
/var/lib/navidromefor the music library, the SQLite database and the transcoding cache navidrome.serviceandnginx.serviceas enabled systemd units- 24/7 SecureAnyCloud support
Prerequisites
You need an active Azure subscription, an SSH key pair, and a VNet with a subnet in the target region.
Standard_B2s (2 vCPU / 4 GiB RAM) is a sensible starting size. Choose a larger size for bigger libraries or more concurrent listeners.
Configure the network security group (NSG) to allow inbound 22/tcp from your management network and 80/tcp for the web player. Navidrome serves plain HTTP on port 80, so for production, terminate TLS in front of it with your own domain. The server listens on 127.0.0.1:4533 only, so port 4533 stays off the network.
Step 1 - Deploy from the Azure Marketplace
Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Navidrome by SecureAnyCloud, and select Create.
On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).
Review the dedicated data disk on the Disks tab, then select Review + create and Create.
Step 2 - Deploy from the Azure CLI
# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:navidrome-ubuntu-24-04:default:latest
az vm create \
--resource-group <your-rg> \
--name navidrome \
--image sac1647283583153:navidrome-ubuntu-24-04:default:latest \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku StandardOpen port 80 for the web player:
az vm open-port --resource-group <your-rg> --name navidrome --port 80Step 3 - Confirm the services are running
Connect over SSH as azureuser and confirm that Navidrome and nginx are active. The server listens only on 127.0.0.1:4533, while nginx serves the web player on port 80.
systemctl is-active navidrome nginx navidrome-firstbootsudo ss -tlnp | grep -E ':80 |:4533 ' | sed 's/ */ /g'Step 4 - Read the first-visit info note
Navidrome ships with no administrator account. On the first boot of every VM, a one-shot service writes an instance info note that records the site URL and the create-admin instruction. The note contains no password, because you set your own on your first visit. Read it with sudo:
sudo cat /root/navidrome-credentials.txtConfirm from the command line that the server is healthy. The health endpoint returns 200:
curl -s -o /dev/null -w 'GET /ping -> HTTP %{http_code}\n' http://127.0.0.1/pingStep 5 - Create your admin on first visit
Browse to http://<vm-public-ip>/. The image ships with no user, so Navidrome opens on its create admin screen.
Choose a username and a strong password, and select CREATE ADMIN. This screen is where you secure the instance. No default credentials ship, so there is nothing to change.
Step 6 - Browse your music library
After you create your admin, you land in the web player. Use the left sidebar to browse Albums, Artists, Songs, Radios and Playlists, with filters for recently added, most played, top rated and favourites.
Navidrome scans the library automatically and presents your albums with cover art. The image ships empty, so your music appears here after you copy it in (Step 8).
Step 7 - Play a track in the web player
Open an album to see its tracklist, cover art, release year and total running time. The album page offers PLAY, SHUFFLE, PLAY NEXT, PLAY LATER, ADD TO PLAYLIST and DOWNLOAD controls.
Select PLAY, or double-click a track, and the persistent player bar appears at the bottom of the window. It shows the now-playing track, a seek bar, volume, the play queue and skip controls. ffmpeg transcodes on the fly, so playback works on any device.
Step 8 - Add your own music
Copy your audio files into the library folder on the data disk, and Navidrome scans them automatically. From your workstation, use scp or rsync over SSH, for example scp -r ~/Music/* azureuser@<vm-public-ip>:/tmp/upload/, and then move the files into place. The library folder is:
sudo ls -la /var/lib/navidrome/musicNavidrome reads standard tags (title, artist, album, track number, year, genre) and folder or embedded cover art. A well-tagged collection appears organised into albums and artists within seconds of being copied in.
Step 9 - Verify the stack
Confirm the Navidrome version, that the services are enabled, that the web player responds through nginx, and that the dedicated data disk is mounted:
/usr/local/bin/navidrome --versionsystemctl is-enabled navidrome nginxcurl -s -o /dev/null -w 'GET /app/ -> HTTP %{http_code}\n' http://127.0.0.1/app/findmnt -no SOURCE,TARGET,FSTYPE /var/lib/navidromeStep 10 - Where your data lives
The music library, the SQLite database and the transcoding cache all live on a dedicated Azure data disk mounted at /var/lib/navidrome, separate from the OS disk. The disk is captured into the image and re-provisioned on every VM, and you can snapshot and resize it independently. Confirm the mount and the free space:
df -h /var/lib/navidrome | tail -1sudo du -sh /var/lib/navidrome/music /var/lib/navidrome/data /var/lib/navidrome/cacheStep 11 - Connect a Subsonic compatible app
Navidrome exposes a Subsonic-compatible API, so a wide range of mobile and desktop players (play:Sub, DSub, Symfonium, Feishin, Sonixd and others) can stream from your server. Point the app at http://<vm-public-ip>/, then sign in with the admin username and password that you created in Step 5.
You can also create additional users from Settings, so that a household or team shares one server while you keep administrative control.
Security notes
- Encrypt web traffic. Navidrome serves plain HTTP on port 80. For production, put it behind your own TLS-terminating reverse proxy or an Azure Application Gateway with a certificate for your domain, and restrict port 80 in the NSG to trusted networks. A common approach is
certbotwith your-domain on a front-end proxy. - Keep the server private. The server listens on
127.0.0.1:4533only and is never exposed directly. Only nginx on port 80 faces the network. - Protect the admin account. The image ships with no administrator and no media. You create the first admin on your first visit, so there are no shared or default credentials to rotate. Keep the admin password in a safe place, and create scoped user accounts for other listeners.
- Keep the VM patched. The image is patched at build time and ships with unattended security upgrades enabled.
Support
SecureAnyCloud images come with 24/7 support. For questions about this Navidrome image or help with your deployment, contact us through the SecureAnyCloud website.
Deploy on Azure
Launch Navidrome on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com
This image delivers Navidrome 0.62, the popular open-source, self-hosted music streaming server, fully installed and reverse-proxied with nginx. Navidrome streams your own music collection from anywhere through a fast, modern web player or any Subsonic-compatible mobile or desktop app, with on-the-fly transcoding provided by ffmpeg.
The Navidrome server is a single, self-contained Go binary with an embedded SQLite datastore and a bundled web player. It runs under systemd and listens on the loopback interface, with nginx in front on port 80 (and 443 once you add TLS). The music library, database and transcoding cache live on a dedicated EBS data volume mounted at /var/lib/navidrome, separate from the operating system disk. You can resize the volume independently.
Secure by default: you create the admin account
Navidrome has no default administrator, and this image does not include one. The AMI starts at Navidrome's built-in first-visit create-admin form. The first time you browse to your instance, you create your own admin account with your own username and password. No shared credentials, no database rows and no media files ship in the image, so every instance starts as a clean slate that only you secure.
Connecting to your instance
Connect over SSH on port 22 with the default login user for your operating system variant and the EC2 key pair that you launched with.
For Ubuntu 24.04, the SSH login user is ubuntu. For example: ssh -i your-key.pem ubuntu@<instance-public-ip>
Replace <instance-public-ip> with your instance's public IPv4 address, or with its private address if you reach it over a VPN or Direct Connect.
First visit - create your admin account
Open Navidrome in your browser:
http://<instance-public-ip>/Navidrome opens the create an admin user form. Enter a username (letters and numbers only), choose a strong password and select Create Admin. The database is empty, so this first account is the administrator.
That single step secures your instance. You are signed in immediately, and the create-admin form never appears again for this instance. Later visits show the sign-in page.
Enable HTTPS before you expose the instance to the public internet (see the TLS section below). Until then, treat the password that you set here as you would any credential sent over plain HTTP.
Uploading your music library
Navidrome serves the music that it finds under /var/lib/navidrome/music on the dedicated data volume. Copy your collection to the instance over SSH from your workstation, for example with rsync. Replace the values in angle brackets with your own paths and address:
rsync -av --chown=navidrome:navidrome -e "ssh -i your-key.pem" /path/to/your/music/ ubuntu@<instance-public-ip>:/tmp/music-upload/Then move the files into the library and hand ownership to the service account:
sudo rsync -a --chown=navidrome:navidrome /tmp/music-upload/ /var/lib/navidrome/music/ && rm -rf /tmp/music-uploadNavidrome watches the library and picks up new files automatically. It also performs a scan at startup, so running sudo systemctl restart navidrome after a large import gives you an immediate full scan.
Organise files as Artist/Album/track.ext for the cleanest results. Navidrome reads the embedded tags (ID3, Vorbis, MP4) for artist, album, artwork and more. MP3, FLAC, OGG, OPUS, AAC/M4A, WMA and WAV are all supported, and ffmpeg transcodes anything that a client cannot play natively.
The web player
Once your library is scanned, the Albums view shows your collection with cover art, ready to filter, search, rate and shuffle:
Open an album and select Play to start streaming. The player bar at the bottom carries the queue, seek bar, volume, repeat and shuffle controls, and a Love (favourite) button:
Build playlists from any selection of songs, browse by artist or genre, and use the Sharing options to publish individual albums or playlists. To add family members or friends, each with their own account, open Settings > Users in the top-right menu.
Subsonic-compatible apps
Navidrome implements the Subsonic API, so dozens of mobile and desktop clients work out of the box. Point the app at http://<instance-public-ip>/ (or your HTTPS domain once TLS is enabled) and sign in with your Navidrome username and password. The Subsonic endpoint responds at /rest/ping.view.
Managing the services
Navidrome runs as two systemd units, the Go server and nginx:
systemctl status navidrome nginxThe Navidrome server listens only on the loopback interface; nginx is the only service bound to a public port:
ss -tlnp | grep -E ':80 |:4533 'LISTEN 0 4096 127.0.0.1:4533 0.0.0.0:* users:(("navidrome",...)) LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",...))nginx also proxies a health endpoint for monitoring:
curl -s -o /dev/null -w '%{http_code}\n' http://localhost/ping200Configuration is supplied through ND_* environment variables in /etc/systemd/system/navidrome.service (address, port, music folder, data folder, cache folder). The full option reference is in the Navidrome documentation. After you edit the unit, run sudo systemctl daemon-reload && sudo systemctl restart navidrome.
The data volume
The music library (music/), Navidrome's SQLite database (data/navidrome.db) and the transcoding cache (cache/) live on a dedicated EBS volume mounted at /var/lib/navidrome. The volume is separate from the OS disk and can be resized independently:
df -h /var/lib/navidromeFilesystem Size Used Avail Use% Mounted on /dev/nvme1n1 49G ... ...% /var/lib/navidromeThe volume is mounted by its filesystem UUID in /etc/fstab, so the mount is stable across reboots and instance relaunches. To grow it as your collection grows, resize the EBS volume in the AWS console, then run sudo resize2fs /dev/nvme1n1 (substitute the device shown by lsblk). Snapshot the EBS volume, or back up /var/lib/navidrome, to protect your library and play history.
Enabling HTTPS with Let's Encrypt
For production use, terminate TLS at nginx. Point a DNS A record at the instance's public IP, then install certbot:
sudo apt-get update
sudo apt-get install -y certbot python3-certbot-nginxRun certbot interactively and follow its prompts. certbot edits the nginx site for you. Replace the example domain and email with your own:
sudo certbot --nginx -d your-domain.example.com -m you@example.com --agree-toscertbot configures the HTTPS server block and sets up automatic renewal. After it completes, Navidrome is available at https://your-domain.example.com/. Use that address in your Subsonic apps too. Make sure that your security group allows inbound TCP 443.
Upgrading Navidrome
Navidrome is installed as a single Go binary at /usr/local/bin/navidrome. To upgrade, download the new release's navidrome_<version>_linux_amd64.tar.gz from the official GitHub releases, replace the binary and restart the service. Snapshot the data volume first, because the database schema migrates on start. SecureAnyCloud support can assist with planning and performing upgrades.
Support
SecureAnyCloud provides this Amazon Machine Image with 24/7 technical support covering deployment, upgrades, library migration, transcoding configuration and TLS termination. Contact us through your AWS Marketplace seller support channel.
Navidrome is a trademark of its respective owner. All product and company names are trademarks or registered trademarks of their respective holders. Their use does not imply any affiliation with or endorsement by them.
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com