New lotus-now-playing service (LXC 151, :8072, NPM /now-playing/):
- polls Navidrome getNowPlaying every 10 s as a non-admin service user;
Navidrome is the scrobbling master and Dropped Needle passes the real
listener through, so entries are keyed by SSO username
- authenticates Lotus Chat with Matrix OpenID tokens (Synapse
/_matrix/federation/v1/openid/userinfo, cached)
- maps Matrix users to SSO usernames: server-only override file, then the
Synapse admin API (email <name>@lotusguild.org or the legacy
plain-username external ID; Authelia opaque UUIDs are ignored)
- opt-in per user (off by default), stored in /var/lib/lotus-now-playing
- GET/PUT /v1/me, GET /v1/users?ids= (opted-in, matched, playing only),
GET /v1/cover/<id> (no auth, but only covers being played by an
opted-in user right now)
- never logs titles, artists or tokens
Also: systemd unit, install.sh, unit tests, ruff on now-playing/ in CI,
README section + port row, the outdated NPM note (routes now live in
proxy host 49's Advanced config), and cinny/config.json nowPlaying.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA