Skip to content

Web app

The web app runs nori in a browser, with the library, search, the queue, AutoMix, the equalizer, lyrics, remote control and jams. Self-host it with the Docker image ghcr.io/norifm/nori-web:latest (for linux/amd64 and linux/arm64).

The browser needs a secure context: serve the container over HTTPS behind your reverse proxy, or open it on localhost. A page served over HTTPS cannot reach a server over plain HTTP.

With no environment variables set, the container serves the web app on port 8080 and does not proxy any server:

Terminal window
docker run -d --name nori-web -p 8080:8080 ghcr.io/norifm/nori-web:latest

When you open it, nori asks for your server’s address, user name and password, or lets you pick a local music folder. The server must answer CORS preflights (Navidrome does).

Set NORI_NAVIDROME_URL to your Navidrome server’s origin (for example http://navidrome:4533):

Terminal window
docker run -d --name nori-web -p 8080:8080 \
-e NORI_NAVIDROME_URL=http://navidrome:4533 \
ghcr.io/norifm/nori-web:latest

In this mode, the container proxies /rest/* and /nori/* to Navidrome. Because /rest/ping answers on the same origin, the web app signs in to that server without asking for its address or needing CORS. Android, the desktop app, the terminal app and the iPod app can also connect to this address. Navidrome’s web panel and internal APIs stay unreachable.

To put nori in front of Navidrome while keeping Navidrome’s own panel and share links reachable, set NORI_NAVIDROME_PROXY_ALL=true along with NORI_NAVIDROME_URL:

services:
navidrome:
image: deluan/navidrome:latest
restart: unless-stopped
volumes:
- ./data:/data
- /path/to/music:/music:ro
nori-web:
image: ghcr.io/norifm/nori-web:latest
restart: unless-stopped
ports:
- "8080:8080"
environment:
NORI_NAVIDROME_URL: http://navidrome:4533
NORI_NAVIDROME_PROXY_ALL: "true"
depends_on:
- navidrome

Keep Navidrome’s ND_BASEURL unset (its default). In this mode:

  • / serves nori.
  • /navi opens Navidrome’s web panel (redirects to /app/).
  • /app/*, /auth/*, /api/*, /share/* and /ping proxy to Navidrome, in addition to /rest/* and /nori/*.
  • /metrics is never proxied.
  • nori shows a server button in the top bar (and in the page header on phones). Clicking it opens Navidrome in a new tab so music keeps playing, landing on the album, artist, playlist or library view you are looking at.

For a private single-user setup, you can skip the sign-in screen on a browser’s first visit by supplying credentials in environment variables:

environment:
NORI_NAVIDROME_URL: http://navidrome:4533
NORI_NAVIDROME_PROXY_ALL: "true"
NORI_DANGEROUS_AUTO_LOGIN: "true"
NORI_DANGEROUS_USER: your-username
NORI_DANGEROUS_PASSWORD: your-password

The container serves /nori-config.json with Cache-Control: no-store and logs a startup warning without printing the password. If you sign out manually in Settings, automatic sign-in pauses so you can switch accounts.

VariableDefaultRequiresEffect
PORT8080—HTTP port inside the container (1 to 65535)
NORI_NAVIDROME_URLunset—Navidrome origin (http:// or https://, no path) for /rest/* and /nori/*
NORI_NAVIDROME_PROXY_ALLfalseNORI_NAVIDROME_URLProxies Navidrome’s panel and APIs, redirects /navi to /app/, and shows the Navidrome button in nori
NORI_DANGEROUS_AUTO_LOGINfalseUser, password, serverSigns new browsers in automatically on first visit
NORI_DANGEROUS_USERunsetNORI_DANGEROUS_AUTO_LOGIN=trueAccount name for automatic sign-in
NORI_DANGEROUS_PASSWORDunsetNORI_DANGEROUS_AUTO_LOGIN=truePassword for automatic sign-in
NORI_DANGEROUS_SERVER_URLunsetNORI_DANGEROUS_AUTO_LOGIN=trueServer origin for automatic sign-in when NORI_NAVIDROME_URL is unset

The container exits on startup if an environment variable is invalid or missing a required companion.

The image runs Caddy as non-root user 1000:1000 with its admin API disabled. It serves precompressed Brotli and gzip files and exposes a health check at /healthz. It also works with a read-only root filesystem and a small /tmp tmpfs:

Terminal window
docker run -d --name nori-web -p 8080:8080 \
--read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m \
ghcr.io/norifm/nori-web:latest
  • There are no offline music downloads or stream cache. The service worker keeps the app itself, not audio files.
  • One browser tab holds the database at a time. Opening nori in a second tab offers a Use here button to move the session over.
  • Local music folders need browser folder access and ask for permission again on a new visit.
  • Signing in to a server asks only for the address, a user name and a password.
  • Plugins that need native networking or Bluetooth cannot run in a browser.