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
+1
-1
@@ -14,7 +14,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
# playlistd has no login, so by default it's only reachable from this machine
|
||||
# the first visit creates the login, so by default it's only reachable from this machine
|
||||
- "${PLAYLISTD_BIND:-127.0.0.1}:${PLAYLISTD_PORT:-8000}:8000"
|
||||
environment:
|
||||
DATABASE_URL: postgres://playlistd:${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}@db/playlistd
|
||||
|
||||
Reference in new issue
Block a user