HTTPS and reverse proxy

Kolumi Server speaks plain HTTP on port 8080. For HTTPS, put a reverse proxy in front of it and set KOLUMI_PUBLIC_URL to the address people use.

On this page

What matters

  • KOLUMI_PUBLIC_URL is exactly the address in the browser and the app, for example https://kolumi.example.org. It ends up in QR codes, invitation links and sign-in redirects, and with https:// the web interface sets secure cookies.
  • The proxy forwards everything under this address to port 8080: the app’s API, the web interface and the audio streams.
  • It passes on X-Forwarded-For. Kolumi Server uses it for the limits on PIN and code attempts, so they apply per client and not to your proxy as a whole.
  • No sign-in in front. Don’t put a forward-auth middleware (Authentik, Authelia and the like) or custom error pages in front of Kolumi Server. It signs people in itself, and the app needs the API’s own answers.
  • Audio streams can be long. Don’t buffer them, and allow a few minutes of read timeout.

Caddy

Caddy gets the certificate by itself. If Caddy runs in the same Docker network, use the service name; on the host itself, localhost:8080.

Caddyfile
kolumi.example.org {
	reverse_proxy kolumi-server:8080
}

nginx

nginx
server {
    listen 443 ssl;
    http2 on;
    server_name kolumi.example.org;

    ssl_certificate     /etc/letsencrypt/live/kolumi.example.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/kolumi.example.org/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        # audio streams straight through, without buffering
        proxy_buffering off;
        proxy_read_timeout 300s;
    }
}

Traefik

With Traefik in Docker, labels on the kolumi-server service are enough. Entry point and certificate resolver are the names from your own Traefik setup.

compose.yaml
services:
  kolumi-server:
    # ... as above, plus:
    labels:
      - traefik.enable=true
      - traefik.http.routers.kolumi.rule=Host(`kolumi.example.org`)
      - traefik.http.routers.kolumi.entrypoints=websecure
      - traefik.http.routers.kolumi.tls.certresolver=letsencrypt
      - traefik.http.services.kolumi.loadbalancer.server.port=8080

If Traefik reaches Kolumi Server through a separate Docker network, add the container to that network as well and keep it in the media network, so Navidrome still sees Kolumi Server’s fixed address.

Only at home, or through a VPN

Kolumi accepts http:// addresses, so Kolumi Server works in your home network without a proxy. If you reach your network from outside through WireGuard or Tailscale, that works too: set KOLUMI_PUBLIC_URL to the address the phones use there. For single sign-on, HTTPS is the safe choice, because sign-in providers usually expect it.

Check

Open https://kolumi.example.org/healthz in a browser. It should answer with "status":"ok" and the version. Then sign in to the web interface at the same address. If the app says the server can’t be reached, check that the phone can open this address too, for example in its browser.

Something wrong or missing on this page? Write to hello@kolumi.app.