.example.env 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # App port to run on
  2. PORT=3000
  3. # The name of the site where Kutt is hosted
  4. SITE_NAME=Kutt
  5. # The domain that this website is on
  6. DEFAULT_DOMAIN=localhost:3000
  7. # A passphrase to encrypt JWT. Use a random long string.
  8. JWT_SECRET=
  9. # Database client. Available clients for the supported databases:
  10. # pg | pg-native | sqlite3 | better-sqlite3 | mysql | mysql2 | oracledb | tedious
  11. DB_CLIENT=sqlite3
  12. # SQLite database file name. Only if you use SQLite.
  13. DB_FILENAME=data
  14. # SQL database credential details. Only if you use Postgres or MySQL.
  15. DB_HOST=localhost
  16. DB_PORT=5432
  17. DB_NAME=kutt
  18. DB_USER=postgres
  19. DB_PASSWORD=
  20. DB_SSL=false
  21. DB_POOL_MIN=0
  22. DB_POOL_MAX=10
  23. # Optional - Generated link length
  24. LINK_LENGTH=6
  25. # Optional - Redis host and port
  26. REDIS_ENABLED=false
  27. REDIS_HOST=127.0.0.1
  28. REDIS_PORT=6379
  29. REDIS_PASSWORD=
  30. # The number for Redis database, between 0 and 15. Defaults to 0.
  31. # If you don't know what this is, then you probably don't need to change it.
  32. REDIS_DB=0
  33. # Optional - Disable registration. Default is true.
  34. DISALLOW_REGISTRATION=true
  35. # Optional - Disable anonymous link creation. Default is true.
  36. DISALLOW_ANONYMOUS_LINKS=true
  37. # Optional - This would be shown to the user on the settings page
  38. # It's only for display purposes and has no other use
  39. SERVER_IP_ADDRESS=
  40. SERVER_CNAME_ADDRESS=
  41. # Optional - Use HTTPS for links with custom domain
  42. # It's on you to generate SSL certificates for those domains manually, at least on this version for now
  43. CUSTOM_DOMAIN_USE_HTTPS=false
  44. # Optional - Email is used to verify or change email address, reset password, and send reports.
  45. # If it's disabled, all the above functionality would be disabled as well.
  46. # MAIL_FROM example: "Kutt <support@kutt.it>". Leave it empty to use MAIL_USER.
  47. # More info on the configuration on http://nodemailer.com/.
  48. MAIL_ENABLED=false
  49. MAIL_HOST=
  50. MAIL_PORT=
  51. MAIL_SECURE=true
  52. MAIL_USER=
  53. MAIL_FROM=
  54. MAIL_PASSWORD=
  55. # Optional - Enable rate limitting for some API routes
  56. ENABLE_RATE_LIMIT=false
  57. # Optional - The email address that will receive submitted reports.
  58. REPORT_EMAIL=
  59. # Optional - Support email to show on the app
  60. CONTACT_EMAIL=