.example.env 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Optional - App port to run on
  2. PORT=3000
  3. # Optional - The name of the site where Kutt is hosted
  4. SITE_NAME=Kutt
  5. # Optional - The domain that this website is on
  6. DEFAULT_DOMAIN=localhost:3000
  7. # Required - A passphrase to encrypt JWT. Use a random long string
  8. JWT_SECRET=
  9. # Optional - 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, only if you use Postgres or MySQL
  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. # Optional - Generated link length
  22. LINK_LENGTH=6
  23. # Optional - Alphabet used to generate custom addresses
  24. # Default value omits o, O, 0, i, I, l, 1, and j to avoid confusion when reading the URL
  25. LINK_CUSTOM_ALPHABET=abcdefghkmnpqrstuvwxyzABCDEFGHKLMNPQRSTUVWXYZ23456789
  26. # Optional - Tells the app that it's running behind a proxy server
  27. # and that it should get the IP address from that proxy server
  28. # if you're not using a proxy server then set this to false, otherwise users can override their IP address
  29. TRUST_PROXY=true
  30. # Optional - Redis host and port
  31. REDIS_ENABLED=false
  32. REDIS_HOST=127.0.0.1
  33. REDIS_PORT=6379
  34. REDIS_PASSWORD=
  35. # The number for Redis database, between 0 and 15. Defaults to 0.
  36. # If you don't know what this is, then you probably don't need to change it.
  37. REDIS_DB=0
  38. # Optional - Disable registration. Default is true.
  39. DISALLOW_REGISTRATION=true
  40. # Optional - Disable anonymous link creation. Default is true.
  41. DISALLOW_ANONYMOUS_LINKS=true
  42. # Optional - This would be shown to the user on the settings page
  43. # It's only for display purposes and has no other use
  44. SERVER_IP_ADDRESS=
  45. SERVER_CNAME_ADDRESS=
  46. # Optional - Use HTTPS for links with custom domain
  47. # It's on you to generate SSL certificates for those domains manually, at least on this version for now
  48. CUSTOM_DOMAIN_USE_HTTPS=false
  49. # Optional - Email is used to verify or change email address, reset password, and send reports.
  50. # If it's disabled, all the above functionality would be disabled as well.
  51. # MAIL_FROM example: "Kutt <support@kutt.it>". Leave it empty to use MAIL_USER.
  52. # More info on the configuration on http://nodemailer.com/.
  53. MAIL_ENABLED=false
  54. MAIL_HOST=
  55. MAIL_PORT=587
  56. MAIL_SECURE=true
  57. MAIL_USER=
  58. MAIL_FROM=
  59. MAIL_PASSWORD=
  60. # Optional - Enable rate limitting for some API routes
  61. ENABLE_RATE_LIMIT=false
  62. # Optional - The email address that will receive submitted reports
  63. REPORT_EMAIL=
  64. # Optional - Support email to show on the app
  65. CONTACT_EMAIL=