Configuration
Configure public URLs, owner access, provider credentials, and multi-user mode.
Host and owner settings
Set these in the repository root .env when using the supplied Compose stack. The environment template covers additional settings.
| Variable | Purpose |
|---|---|
SITE_ADDRESS | Hostname served by Caddy. |
PUBLIC_BASE_URL | Public HTTPS origin used when Music Box constructs playable URLs for devices. |
SECRET_KEY | Stable Flask session signing key. |
API_KEY | Server administrator credential for legacy integrations. |
REMOTE_USER, REMOTE_PASSWORD | Credentials for the owner login. |
REMOTE_TOTP_SECRET | Optional base32 TOTP secret for owner login. |
YT_BROWSER_CONTROL_TOKEN | Shared private token required by Flask and the YouTube sign-in browser. |
MUSICBOX_EGRESS_TOKEN | Private authentication for the outbound gateway. |
AMAZON_DOMAIN | Amazon marketplace for Alexa connectivity, such as amazon.in. |
Provider credentials
YouTube Music account browsing and audio can use separate credentials. Compose mounts the project's cookies.txt read-only at /app/cookies.txt. The web account flow manages browser sign-in separately. Amazon connectivity uses a persisted session.
Multi-user hosting
MULTI_USER_ENABLED selects multi-user mode. Review MULTIUSER_PUBLIC_BASE_URL, MULTIUSER_ENCRYPTION_KEY, and the signup, email verification, and SMTP settings in the environment template before enabling access. Use a persistent encryption key for provider credentials.
Keep credentials private
Store the populated environment file, databases, cookie exports, and saved browser profiles outside version control. Give private Alexa skill deployments per-account Alexa tokens.