.env.example 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # ─────────────────────────────────────────────────────────────────────────────
  2. # EKS Support Relay — environment template.
  3. # Copy to .env, fill in real values, and keep the file at chmod 0600.
  4. # NEVER commit a filled-in .env.
  5. # ─────────────────────────────────────────────────────────────────────────────
  6. # --- Runtime ---------------------------------------------------------------
  7. NODE_ENV=production
  8. PORT=3000
  9. # prod = compiled build (deterministic); dev = tsx watch (no restart on edits)
  10. RELAY_MODE=prod
  11. # Absolute path inside the container. Prisma resolves relative file: URLs
  12. # against prisma/, which is a common source of "wrong database" confusion.
  13. DATABASE_URL=file:/app/data/eks_relay.db
  14. # --- Chatwoot --------------------------------------------------------------
  15. CHATWOOT_BASE_URL=https://eksupport.easyklima.com
  16. CHATWOOT_API_TOKEN=
  17. CHATWOOT_ACCOUNT_ID=1
  18. CHATWOOT_TICKET_LABEL=ticket
  19. CHATWOOT_SPAM_LABEL=spam
  20. # Only enable once the `spam` label actually exists in the Chatwoot account.
  21. CHATWOOT_APPLY_SPAM_LABEL=false
  22. # Unassign the bot agent when a ticket is created.
  23. CHATWOOT_UNASSIGN_ON_TICKET=true
  24. CHATWOOT_OPEN_ON_TICKET=true
  25. # Webchat / API inbox — reserved for the later web widget adapter.
  26. CHATWOOT_API_INBOX_ID=
  27. CHATWOOT_API_IDENTITY_VALIDATION_TOKEN=
  28. # --- Flowise ---------------------------------------------------------------
  29. FLOWISE_PREDICT_URL=https://botek.easyklima.com/api/v1/prediction/09fc9332-8cdd-4142-8f0e-4259881fc7bf
  30. FLOWISE_API_KEY=
  31. # Optional; derived from FLOWISE_PREDICT_URL when empty. Used by /ready only.
  32. FLOWISE_BASE_URL=
  33. FLOWISE_TIMEOUT_MS=90000
  34. # --- WooCommerce / WordPress ----------------------------------------------
  35. WOOCOMMERCE_BASE_URL=https://easyklima.com
  36. WOOCOMMERCE_CONSUMER_KEY=
  37. WOOCOMMERCE_CONSUMER_SECRET=
  38. # Bearer token for the eksrelay/v1 mu-plugin. Leave empty until the plugin
  39. # enforces it (see docs/DEPLOY.md).
  40. WP_STORE_API_SECRET=
  41. # Currencies actually configured in the shop's multicurrency plugin.
  42. STORE_CURRENCIES=PLN,EUR,AED,CZK,HUF,DKK,SEK,NOK,RON,BGN,GBP
  43. # --- Relay auth ------------------------------------------------------------
  44. # Shared with the Flowise custom tools as $vars.relay_shared_secret.
  45. RELAY_SHARED_SECRET=
  46. # Guards /admin/*. Empty means the admin endpoints are closed, not open.
  47. ADMIN_TOKEN=
  48. # --- Behaviour -------------------------------------------------------------
  49. TENANT_ID=easyklima
  50. DEFAULT_LANGUAGE=pl
  51. TICKET_NUMBER_PREFIX=EKS
  52. WORKER_ENABLED=true
  53. WORKER_POLL_MS=1000
  54. WORKER_MAX_ATTEMPTS=3
  55. SPAM_GATE_ENABLED=true
  56. HTTP_TIMEOUT_MS=30000
  57. # --- Logging ---------------------------------------------------------------
  58. LOG_LEVEL=info
  59. # Switch on ONLY while debugging; it lets customer e-mails and message bodies
  60. # reach the logs. Secrets stay redacted either way.
  61. LOG_PII=false