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.
22 lines
871 B
Plaintext
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
|