.env.example 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Database
  2. DATABASE_URL="postgresql://torqvoice:torqvoice@db:5432/torqvoice"
  3. # Authentication (generate with: openssl rand -hex 32)
  4. BETTER_AUTH_SECRET="your-secret-here"
  5. # App URL (used by both the app and Better Auth)
  6. NEXT_PUBLIC_APP_URL="http://localhost:3000"
  7. # Where uploaded files and the app's other data live. Unset, it is `data`
  8. # beside the app, which is where everything has always been written; set it to
  9. # put uploads on a disk with room on them. Files already written to the old
  10. # place keep being found, so this can be turned on at any time.
  11. #
  12. # In Docker, move the volume with it: the compose file mounts
  13. # `/app/data/uploads`, and a DATA_ROOT pointing anywhere else would write into
  14. # the container instead, where a redeploy loses it.
  15. # DATA_ROOT="/var/lib/torqvoice"
  16. # Scheduled backups (Settings → Integrations). Both are optional.
  17. # The Docker image ships restic at /usr/local/bin/restic. An install that runs
  18. # outside Docker points this at its own restic binary; unset, `restic` is
  19. # looked up on the PATH.
  20. # RESTIC_BIN="/usr/local/bin/restic"
  21. # Where the Local folder destination keeps its repositories, for self-hosted
  22. # installs only. Unset, it is `backups` under DATA_ROOT, which the compose file
  23. # mounts as a volume of its own. A folder on another disk is a better place.
  24. # BACKUP_LOCAL_ROOT="/mnt/backup-disk/torqvoice"
  25. # The largest backup data file a restore or the restore point explorer reads
  26. # into memory, in MiB; 128 unless set. Parsed, a file takes three to five times
  27. # its size in heap, so raise this only on a server with the memory for it. A
  28. # backup whose data file is over the limit still runs, and says so in its log.
  29. # BACKUP_MAX_DATA_FILE_MB=128
  30. # Set to true only when Cloudflare proxies every request AND the origin
  31. # refuses traffic that did not come through it (Cloudflare IP ranges allowed
  32. # at the firewall or in nginx).
  33. #
  34. # Behind Cloudflare this is required, not optional: the proxy sets X-Real-IP
  35. # from the connection it sees, which is a Cloudflare edge address shared by
  36. # thousands of visitors, so leaving this off collapses everyone into a handful
  37. # of rate-limit buckets and real users start getting 429s.
  38. #
  39. # Without the origin lock it is worse than useless, because cf-connecting-ip is
  40. # then just a header anyone reaching the box directly can write for themselves.
  41. TRUST_CF_CONNECTING_IP=false
  42. # Integrations (Settings → Integrations)
  43. # Key that seals third-party tokens at rest (generate with: openssl rand -hex 32).
  44. # Without it the key is derived from BETTER_AUTH_SECRET, with a warning at startup.
  45. INTEGRATIONS_ENCRYPTION_KEY=""
  46. # OAuth apps the platform registers with each provider. Leave empty on a
  47. # self-hosted install to have each workshop enter its own app credentials.
  48. GOOGLE_INTEGRATION_CLIENT_ID=""
  49. GOOGLE_INTEGRATION_CLIENT_SECRET=""
  50. MICROSOFT_INTEGRATION_CLIENT_ID=""
  51. MICROSOFT_INTEGRATION_CLIENT_SECRET=""
  52. ZOOM_INTEGRATION_CLIENT_ID=""
  53. ZOOM_INTEGRATION_CLIENT_SECRET=""
  54. # Intuit development keys reach sandbox companies, production keys live ones;
  55. # the connector works out which it was given.
  56. QUICKBOOKS_INTEGRATION_CLIENT_ID=""
  57. QUICKBOOKS_INTEGRATION_CLIENT_SECRET=""
  58. # The app registered in Fiken under Rediger konto, API. While it is in
  59. # development only the Fiken users listed on the app can connect.
  60. FIKEN_INTEGRATION_CLIENT_ID=""
  61. FIKEN_INTEGRATION_CLIENT_SECRET=""
  62. # One Open Labor Project key for every workshop on this install. Unset, each
  63. # workshop pastes its own key when it connects the labor guide. Set, a
  64. # workshop that leaves its key empty uses this one, lookups made with it are
  65. # shared between workshops, and each workshop gets the daily number of
  66. # lookups below (40 unless set).
  67. # OPEN_LABOR_PROJECT_API_KEY=""
  68. # REPAIR_DATA_SERVER_KEY_DAILY_LOOKUPS=40