# Copy to .env and `set -a; source .env; set +a` (or use direnv) for local dev.

DATABASE_URL=postgres://photos:photos@localhost:5432/photos
BIND_ADDR=127.0.0.1:8080
# For local dev this is the Vite dev server; OIDC redirect URI must match <PUBLIC_URL>/api/auth/callback
PUBLIC_URL=http://localhost:5173
SESSION_SECRET=change-me-to-a-long-random-string-min-32-chars

S3_BUCKET=photos
S3_ENDPOINT=http://localhost:9000
S3_REGION=us-east-1
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_FORCE_PATH_STYLE=true

OIDC_ISSUER=https://auth.example.com
OIDC_CLIENT_ID=photos
OIDC_CLIENT_SECRET=change-me
ALLOWED_EMAILS=u797+claude@posteo.de

# DEV ONLY: skip OIDC and sign straight in as this email. Never set in production.
# DEV_AUTOLOGIN_EMAIL=u797+claude@posteo.de

WORKER_CONCURRENCY=2
RUST_LOG=info,sqlx=warn
