Files
photofetch/backend/.env.example
Julien Calixte 9ded10f68e feat(napta): client-credentials auth + real project listing
Napta uses Auth0 M2M, not a static token: exchange client_id/secret for a cached
JWT, then list non-archived projects via JSON:API (include client name). Falls back
to fixtures when NAPTA_CLIENT_ID/SECRET are unset. Member resolution still stubbed.
2026-06-26 16:16:06 +01:00

22 lines
871 B
Plaintext

# Backend configuration. Copy to .env for local dev (gitignored), or set these
# as environment variables on the Coolify app for production.
PORT=8000
# Napta API (https://app.napta.io). Auth is Auth0 Machine-to-Machine: the backend
# exchanges client_id + client_secret for a JWT. Without BOTH, the API serves demo
# fixtures. Get an M2M credential from Napta (Settings -> API / your Napta admin).
NAPTA_CLIENT_ID=
NAPTA_CLIENT_SECRET=
NAPTA_BASE_URL=https://app.napta.io/api/v1
# Override only if Napta tells you to:
# NAPTA_AUTH_URL=https://auth.napta.io/oauth/token
# NAPTA_AUDIENCE=backend
# Slack bot token (xoxb-...) with scopes: users:read, users:read.email
# Optional — without it, Members show initials Avatars instead of Slack photos.
SLACK_BOT_TOKEN=
# SQLite location (Slack directory cache). Matches the Coolify persistent volume.
DB_PATH=data/app.db