Require logging in to the web UI and API
The first visit to the UI creates the account from a username and password; after that every API route needs a session cookie from logging in. Accounts are stored in app_user (Argon2id password hashes) and sessions in user_session (SHA-256 token hashes, 30 days). The account page lets the user save a Listenbrainz token, checked with Listenbrainz first. It takes priority over listenbrainz.token from the config for LB Radio suggestions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0767c21a6f
commit
53c1bffa6d
33 files changed
+1249
-39
No files matched your search
+4
-3
@@ -10,11 +10,12 @@ SUBSONIC_PASSWORD=
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Optional: your Listenbrainz user token (listenbrainz.org/settings), to find new songs for each
|
||||
# genre mix with LB Radio
|
||||
# genre mix with LB Radio. You can also save it to your account in the web UI, which takes priority.
|
||||
LISTENBRAINZ_TOKEN=
|
||||
|
||||
# Where to serve playlistd. It has no login, so it only listens on this machine by default; set
|
||||
# PLAYLISTD_BIND=0.0.0.0 to make it reachable from your network.
|
||||
# Where to serve playlistd. The first visit to the web UI creates the login, and anyone who gets
|
||||
# there first can, so it only listens on this machine by default. Once you've created your account,
|
||||
# set PLAYLISTD_BIND=0.0.0.0 to make it reachable from your network.
|
||||
PLAYLISTD_BIND=127.0.0.1
|
||||
PLAYLISTD_PORT=8000
|
||||
|
||||
|
||||
Reference in new issue
Block a user