Skip to Content

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.

VariablePurpose
SITE_ADDRESSHostname served by Caddy.
PUBLIC_BASE_URLPublic HTTPS origin used when Music Box constructs playable URLs for devices.
SECRET_KEYStable Flask session signing key.
API_KEYServer administrator credential for legacy integrations.
REMOTE_USER, REMOTE_PASSWORDCredentials for the owner login.
REMOTE_TOTP_SECRETOptional base32 TOTP secret for owner login.
YT_BROWSER_CONTROL_TOKENShared private token required by Flask and the YouTube sign-in browser.
MUSICBOX_EGRESS_TOKENPrivate authentication for the outbound gateway.
AMAZON_DOMAINAmazon 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.

On this page