.example.env 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 | better-sqlite3 | mysql2
  11. # other supported drivers that you can use but you have to manually install them with npm:
  12. # pg-native | sqlite3 | mysql
  13. DB_CLIENT=better-sqlite3
  14. # Optional - SQLite database file path
  15. # Only if you're using SQLite
  16. DB_FILENAME=db/data
  17. # Optional - SQL database credential details
  18. # Only if you're using Postgres or MySQL
  19. DB_HOST=localhost
  20. DB_PORT=5432
  21. DB_NAME=kutt
  22. DB_USER=postgres
  23. DB_PASSWORD=
  24. DB_SSL=false
  25. DB_POOL_MIN=0
  26. DB_POOL_MAX=10
  27. # Optional - Generated link length
  28. LINK_LENGTH=6
  29. # Optional - Alphabet used to generate custom addresses
  30. # Default value omits o, O, 0, i, I, l, 1, and j to avoid confusion when reading the URL
  31. LINK_CUSTOM_ALPHABET=abcdefghkmnpqrstuvwxyzABCDEFGHKLMNPQRSTUVWXYZ23456789
  32. # Optional - Tells the app that it's running behind a proxy server
  33. # and that it should get the IP address from that proxy server
  34. # if you're not using a proxy server then set this to false, otherwise users can override their IP address
  35. TRUST_PROXY=true
  36. # Optional - Redis host and port
  37. REDIS_ENABLED=false
  38. REDIS_HOST=127.0.0.1
  39. REDIS_PORT=6379
  40. REDIS_PASSWORD=
  41. # The number for Redis database, between 0 and 15. Defaults to 0.
  42. # If you don't know what this is, then you probably don't need to change it.
  43. REDIS_DB=0
  44. # Optional - Disable registration. Default is true.
  45. DISALLOW_REGISTRATION=true
  46. # Optional - Disable anonymous link creation. Default is true.
  47. DISALLOW_ANONYMOUS_LINKS=true
  48. # Optional - This would be shown to the user on the settings page
  49. # It's only for display purposes and has no other use
  50. SERVER_IP_ADDRESS=
  51. SERVER_CNAME_ADDRESS=
  52. # Optional - Use HTTPS for links with custom domain
  53. # It's on you to generate SSL certificates for those domains manually, at least on this version for now
  54. CUSTOM_DOMAIN_USE_HTTPS=false
  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=587
  62. MAIL_SECURE=true
  63. MAIL_USER=
  64. MAIL_FROM=
  65. MAIL_PASSWORD=
  66. # Optional - Enable rate limitting for some API routes
  67. ENABLE_RATE_LIMIT=false
  68. # Optional - The email address that will receive submitted reports
  69. REPORT_EMAIL=
  70. # Optional - Support email to show on the app
  71. CONTACT_EMAIL=