.example.env 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. # Generated link length
  8. LINK_LENGTH=6
  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. # SQL database credential details
  13. DB_HOST=localhost
  14. DB_PORT=5432
  15. DB_NAME=kutt
  16. DB_USER=postgres
  17. DB_PASSWORD=
  18. DB_SSL=false
  19. DB_POOL_MIN=0
  20. DB_POOL_MAX=10
  21. # SQLite database file name. Only if you use SQLite.
  22. DB_FILENAME=data
  23. # Redis host and port
  24. REDIS_ENABLED=false
  25. REDIS_HOST=127.0.0.1
  26. REDIS_PORT=6379
  27. REDIS_PASSWORD=
  28. # Optional: The number for Redis database, between 0 and 15. Defaults to 0.
  29. # If you don't know what this is, then you probably don't need to change it.
  30. REDIS_DB=0
  31. # Disable registration
  32. DISALLOW_REGISTRATION=false
  33. # Disable anonymous link creation
  34. DISALLOW_ANONYMOUS_LINKS=false
  35. # This would be shown to the user on the settings page
  36. # It's only for display purposes and has no other use
  37. SERVER_IP_ADDRESS=
  38. # Use HTTPS for links with custom domain
  39. CUSTOM_DOMAIN_USE_HTTPS=false
  40. # A passphrase to encrypt JWT. Use a long and secure key.
  41. JWT_SECRET=securekey
  42. # Optional - Google Cloud API to prevent from users from submitting malware URLs.
  43. # Get it from https://developers.google.com/safe-browsing/v4/get-started
  44. GOOGLE_SAFE_BROWSING_KEY=
  45. # Optional - Email is used to verify or change email address, reset password, and send reports.
  46. # If it's disabled, all the above functionality would be disabled as well.
  47. # MAIL_FROM example: "Kutt <support@kutt.it>". Leave it empty to use MAIL_USER.
  48. # More info on the configuration on http://nodemailer.com/.
  49. MAIL_ENABLED=false
  50. MAIL_HOST=
  51. MAIL_PORT=
  52. MAIL_SECURE=true
  53. MAIL_USER=
  54. MAIL_FROM=
  55. MAIL_PASSWORD=
  56. # Enable rate limitting for some API routes
  57. ENABLE_RATE_LIMIT=false
  58. # The email address that will receive submitted reports.
  59. REPORT_EMAIL=
  60. # Support email to show on the app
  61. CONTACT_EMAIL=