Files
Scrobbler/.env.example
T
mattandClaude Opus 5.5 8d12922f6a
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 1m6s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
Serve fediverse paths on the UI's domain (phase 1, step 6)
- The UI container forwards /.well-known/{webfinger,nodeinfo,host-meta},
  /nodeinfo/, /users/, /inbox and /actor to API_INTERNAL_URL (compose:
  http://api:8000), passing Host and X-Forwarded-*; unset means no
  forwarding
- The API's name is resolved per request via the container's resolver,
  so the UI starts before the API and survives API restarts
- Compose passes the FEDERATION_* settings to api and worker;
  .env.example documents them, including FEDERATION_KEY_SECRET
- gunicorn: disable the 26.x control socket (the container user has no
  home directory)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
2026-09-25 20:32:40 +01:00

33 lines
1.1 KiB
Bash

# Copy to .env for local development.
# Host port docker compose publishes Postgres on.
DB_PORT=5432
DATABASE_URL=postgresql+psycopg://scrobbler:scrobbler@localhost:5432/scrobbler
TEST_DATABASE_URL=postgresql+psycopg://scrobbler:scrobbler@localhost:5432/scrobbler_test
SECRET_KEY=change-me
# Origin(s) of the static UI allowed to call /api/v1 (comma separated).
CORS_ORIGINS=http://localhost:8080
# Where Last.fm clients are redirected to approve desktop auth tokens.
UI_BASE_URL=http://localhost:8080
# Prometheus metrics are served on a separate port.
METRICS_PORT=9100
# Set to allow importing history straight from Last.fm (https://www.last.fm/api/account/create).
LASTFM_API_KEY=
# docker compose host ports (defaults shown)
API_PORT=5050
UI_PORT=8080
PROMETHEUS_PORT=9090
GRAFANA_PORT=3000
GRAFANA_ADMIN_PASSWORD=admin
# ActivityPub federation (in development; off by default). See src/scrobbler/federation/README.md.
# Use the web UI's host and origin: handles become @user@<FEDERATION_DOMAIN>.
FEDERATION_ENABLED=0
FEDERATION_DOMAIN=
FEDERATION_BASE_URL=
# 32+ characters; encrypts actors' private keys. Keep it safe and never change it.
FEDERATION_KEY_SECRET=