.example.env 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_HOST=127.0.0.1
  25. REDIS_PORT=6379
  26. REDIS_PASSWORD=
  27. # Optional: The number for Redis database, between 0 and 15. Defaults to 0.
  28. # If you don't know what this is, then you probably don't need to change it.
  29. REDIS_DB=0
  30. # Disable registration
  31. DISALLOW_REGISTRATION=false
  32. # Disable anonymous link creation
  33. DISALLOW_ANONYMOUS_LINKS=false
  34. # The daily limit for each user
  35. USER_LIMIT_PER_DAY=50
  36. # This would be shown to the user on the settings page
  37. # It's only for display purposes and has no other use
  38. SERVER_IP_ADDRESS=
  39. # Create a cooldown for non-logged in users in minutes
  40. # Would be ignored if DISALLOW_ANONYMOUS_LINKS is set to true
  41. # Set 0 to disable
  42. NON_USER_COOLDOWN=0
  43. # Max number of visits for each link to have detailed stats
  44. DEFAULT_MAX_STATS_PER_LINK=5000
  45. # Use HTTPS for links with custom domain
  46. CUSTOM_DOMAIN_USE_HTTPS=false
  47. # A passphrase to encrypt JWT. Use a long and secure key.
  48. JWT_SECRET=securekey
  49. # Admin emails so they can access admin actions on settings page
  50. # Comma seperated
  51. ADMIN_EMAILS=
  52. # Optional - Google Cloud API to prevent from users from submitting malware URLs.
  53. # Get it from https://developers.google.com/safe-browsing/v4/get-started
  54. GOOGLE_SAFE_BROWSING_KEY=
  55. # Optional - Email is used to verify or change email address, reset password, and send reports.
  56. # If it's disabled, all the above functionality would be disabled as well.
  57. # MAIL_FROM example: "Kutt <support@kutt.it>". Leave it empty to use MAIL_USER.
  58. # More info on the configuration on http://nodemailer.com/.
  59. MAIL_ENABLED=false
  60. MAIL_HOST=
  61. MAIL_PORT=
  62. MAIL_SECURE=true
  63. MAIL_USER=
  64. MAIL_FROM=
  65. MAIL_PASSWORD=
  66. # The email address that will receive submitted reports.
  67. REPORT_EMAIL=
  68. # Support email to show on the app
  69. CONTACT_EMAIL=