2026-06-11 01:01:37 +02:00
|
|
|
# ---- Copy this file to .env and fill in the values ----
|
|
|
|
|
|
|
|
|
|
# Postgres (used by docker-compose for the db service and the DATABASE_URL)
|
2026-06-21 06:53:12 +02:00
|
|
|
POSTGRES_USER=siftlode
|
2026-06-11 01:01:37 +02:00
|
|
|
POSTGRES_PASSWORD=change-this-password
|
2026-06-21 06:53:12 +02:00
|
|
|
POSTGRES_DB=siftlode
|
2026-06-11 01:01:37 +02:00
|
|
|
|
|
|
|
|
# Host port the app is exposed on (http://localhost:<APP_PORT>)
|
|
|
|
|
APP_PORT=8080
|
|
|
|
|
|
|
|
|
|
# Session signing key. Generate with: python -c "import secrets;print(secrets.token_urlsafe(48))"
|
2026-06-13 23:56:34 +02:00
|
|
|
# In production (an https OAUTH_REDIRECT_URL) the app refuses to start with this placeholder
|
|
|
|
|
# or any key shorter than 32 chars — a known signing key would let anyone forge a session.
|
2026-06-11 01:01:37 +02:00
|
|
|
SECRET_KEY=change-me-session-key
|
|
|
|
|
|
|
|
|
|
# Fernet key for encrypting stored OAuth refresh tokens. Generate with:
|
|
|
|
|
# python -c "import base64,os;print(base64.urlsafe_b64encode(os.urandom(32)).decode())"
|
|
|
|
|
TOKEN_ENCRYPTION_KEY=change-me-fernet-key
|
|
|
|
|
|
|
|
|
|
# Google OAuth client (Google Cloud Console -> APIs & Services -> Credentials -> OAuth client ID, type "Web application").
|
|
|
|
|
# Authorized redirect URI must match OAUTH_REDIRECT_URL exactly.
|
|
|
|
|
GOOGLE_CLIENT_ID=
|
|
|
|
|
GOOGLE_CLIENT_SECRET=
|
|
|
|
|
OAUTH_REDIRECT_URL=http://localhost:8080/auth/callback
|
|
|
|
|
|
|
|
|
|
# Invite list: only these Google account emails may sign in (comma-separated).
|
|
|
|
|
ALLOWED_EMAILS=
|
|
|
|
|
# Admin emails (subset of the above) get the admin role.
|
|
|
|
|
ADMIN_EMAILS=
|
|
|
|
|
|
|
|
|
|
# Optional: origin of a separately-served frontend dev server (enables CORS). Leave empty in production.
|
|
|
|
|
FRONTEND_ORIGIN=
|
2026-06-11 16:35:00 +02:00
|
|
|
|
|
|
|
|
# Optional YouTube Data API key (Google Cloud Console -> Credentials -> Create API key).
|
|
|
|
|
# When set, all public reads (channels/videos/playlist backfill + enrichment) use the key
|
|
|
|
|
# instead of a user's OAuth token, so 24/7 backfill never depends on a refresh token that
|
|
|
|
|
# would otherwise expire (Google expires refresh tokens after 7 days while the OAuth consent
|
|
|
|
|
# screen is in "Testing"). Strongly recommended for the always-on server instance.
|
|
|
|
|
YOUTUBE_API_KEY=
|
|
|
|
|
|
2026-06-12 01:43:07 +02:00
|
|
|
# Optional: outbound email for onboarding (access-request + approval notices). Gmail SMTP +
|
|
|
|
|
# App Password (account needs 2FA; generate at https://myaccount.google.com/apppasswords under
|
|
|
|
|
# the SENDING account). All optional — if unset, email is skipped and onboarding still works
|
|
|
|
|
# via in-app notifications. SMTP_FROM falls back to SMTP_USER.
|
|
|
|
|
SMTP_HOST=
|
|
|
|
|
SMTP_PORT=587
|
|
|
|
|
SMTP_USER=
|
|
|
|
|
SMTP_PASSWORD=
|
|
|
|
|
SMTP_FROM=
|
|
|
|
|
|
2026-07-01 12:46:50 +02:00
|
|
|
# --- Scheduler ---
|
|
|
|
|
# The background scheduler (subscription sync, backfill, enrichment) runs inside the app.
|
|
|
|
|
# DATABASE_URL is set for you by docker-compose to the bundled `db` service. If you ever run
|
|
|
|
|
# more than one instance against the same database, keep SCHEDULER_ENABLED=true on exactly one
|
|
|
|
|
# of them and false on the rest, to avoid double quota use and write races.
|
2026-06-11 16:35:00 +02:00
|
|
|
SCHEDULER_ENABLED=true
|
2026-07-04 06:31:31 +02:00
|
|
|
|
|
|
|
|
# --- Download center ---
|
|
|
|
|
# The Download Center adds a `worker` container (runs the yt-dlp/ffmpeg job loop) and a small
|
|
|
|
|
# `bgutil-pot` sidecar (mints YouTube tokens) — both come up automatically with docker compose.
|
|
|
|
|
# Downloaded media defaults to a Docker-managed named volume. Set DOWNLOAD_HOST_PATH to a host
|
|
|
|
|
# directory instead — e.g. one your Plex server can read — to keep the Plex-style tree there.
|
|
|
|
|
# The path must be writable by the container user (uid of `appuser`, 1000): chown 1000:1000 <dir>.
|
|
|
|
|
# DOWNLOAD_HOST_PATH=/mnt/media/youtube
|