.env.example 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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=false
  24. # Webchat / API inbox — reserved for the later web widget adapter.
  25. CHATWOOT_API_INBOX_ID=
  26. CHATWOOT_API_IDENTITY_VALIDATION_TOKEN=
  27. # --- Flowise ---------------------------------------------------------------
  28. FLOWISE_PREDICT_URL=https://botek.easyklima.com/api/v1/prediction/09fc9332-8cdd-4142-8f0e-4259881fc7bf
  29. FLOWISE_API_KEY=
  30. # Optional; derived from FLOWISE_PREDICT_URL when empty. Used by /ready only.
  31. FLOWISE_BASE_URL=
  32. FLOWISE_TIMEOUT_MS=90000
  33. # --- WooCommerce / WordPress ----------------------------------------------
  34. WOOCOMMERCE_BASE_URL=https://easyklima.com
  35. WOOCOMMERCE_CONSUMER_KEY=
  36. WOOCOMMERCE_CONSUMER_SECRET=
  37. # Bearer token for the eksrelay/v1 mu-plugin. Leave empty until the plugin
  38. # enforces it (see docs/DEPLOY.md).
  39. WP_STORE_API_SECRET=
  40. # Currencies actually configured in the shop's multicurrency plugin.
  41. STORE_CURRENCIES=PLN,EUR,AED,CZK,HUF,DKK,SEK,NOK,RON,BGN,GBP
  42. # --- Relay auth ------------------------------------------------------------
  43. # Shared with the Flowise custom tools as $vars.relay_shared_secret.
  44. RELAY_SHARED_SECRET=
  45. # Guards /admin/*. Empty means the admin endpoints are closed, not open.
  46. ADMIN_TOKEN=
  47. # --- Behaviour -------------------------------------------------------------
  48. TENANT_ID=easyklima
  49. DEFAULT_LANGUAGE=pl
  50. TICKET_NUMBER_PREFIX=EKS
  51. WORKER_ENABLED=true
  52. WORKER_POLL_MS=1000
  53. WORKER_MAX_ATTEMPTS=3
  54. SPAM_GATE_ENABLED=true
  55. HTTP_TIMEOUT_MS=30000
  56. # --- Logging ---------------------------------------------------------------
  57. LOG_LEVEL=info
  58. # Switch on ONLY while debugging; it lets customer e-mails and message bodies
  59. # reach the logs. Secrets stay redacted either way.
  60. LOG_PII=false