Files
TREK/server/.env.example
2026-03-31 22:23:53 +03:00

40 lines
1.8 KiB
Plaintext

# ── Core ───────────────────────────────────────────────────────
PORT=3001
NODE_ENV=development
JWT_SECRET=your-super-secret-jwt-key-change-in-production
TZ=UTC
# info = concise user actions; debug = verbose admin-level details
LOG_LEVEL=info
# ── Networking ─────────────────────────────────────────────────
# Comma-separated origins for CORS and email links
# ALLOWED_ORIGINS=https://trek.example.com
# Redirect HTTP → HTTPS behind a TLS proxy
# FORCE_HTTPS=false
# Number of trusted proxies for X-Forwarded-For
# TRUST_PROXY=1
# ── OIDC / SSO ─────────────────────────────────────────────────
# OIDC_ISSUER=https://auth.example.com
# OIDC_CLIENT_ID=trek
# OIDC_CLIENT_SECRET=supersecret
# OIDC_DISPLAY_NAME=SSO
# Disable local password auth entirely (SSO only)
# OIDC_ONLY=false
# OIDC_ADMIN_CLAIM=groups
# OIDC_ADMIN_VALUE=app-trek-admins
# ── SMTP (email notifications) ─────────────────────────────────
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=trek@example.com
# SMTP_PASS=secret
# SMTP_FROM=trek@example.com
# SMTP_SKIP_TLS_VERIFY=false
# ── Webhook (Discord / Slack notifications) ────────────────────
# NOTIFICATION_WEBHOOK_URL=https://discord.com/api/webhooks/...
# ── Demo ───────────────────────────────────────────────────────
# DEMO_MODE=false