2025-01-08 09:46:30 +03:30
|
|
|
# Optional - App port to run on
|
2019-05-29 19:09:44 +04:30
|
|
|
PORT=3000
|
|
|
|
|
2025-01-08 09:46:30 +03:30
|
|
|
# Optional - The name of the site where Kutt is hosted
|
2020-07-26 15:03:23 +04:30
|
|
|
SITE_NAME=Kutt
|
2020-02-05 18:26:19 +03:30
|
|
|
|
2025-01-08 09:46:30 +03:30
|
|
|
# Optional - The domain that this website is on
|
2020-07-26 15:03:23 +04:30
|
|
|
DEFAULT_DOMAIN=localhost:3000
|
2019-05-29 19:09:44 +04:30
|
|
|
|
2025-01-08 09:46:30 +03:30
|
|
|
# Required - A passphrase to encrypt JWT. Use a random long string
|
2025-01-06 10:28:21 +03:30
|
|
|
JWT_SECRET=
|
2019-12-27 16:31:07 +03:00
|
|
|
|
2025-01-08 09:46:30 +03:30
|
|
|
# Optional - Database client. Available clients for the supported databases:
|
2025-01-24 12:27:10 +03:30
|
|
|
# pg | better-sqlite3 | mysql2
|
|
|
|
# other supported drivers that you can use but you have to manually install them with npm:
|
|
|
|
# pg-native | sqlite3 | mysql
|
|
|
|
DB_CLIENT=better-sqlite3
|
|
|
|
|
|
|
|
# Optional - SQLite database file path
|
|
|
|
# Only if you're using SQLite
|
|
|
|
DB_FILENAME=db/data
|
|
|
|
|
|
|
|
# Optional - SQL database credential details
|
|
|
|
# Only if you're using Postgres or MySQL
|
2019-10-08 21:56:03 +03:30
|
|
|
DB_HOST=localhost
|
2019-12-15 13:05:00 +02:00
|
|
|
DB_PORT=5432
|
2024-09-25 16:34:43 +03:30
|
|
|
DB_NAME=kutt
|
|
|
|
DB_USER=postgres
|
2019-05-29 19:09:44 +04:30
|
|
|
DB_PASSWORD=
|
2019-12-15 13:05:00 +02:00
|
|
|
DB_SSL=false
|
2024-09-25 16:34:43 +03:30
|
|
|
DB_POOL_MIN=0
|
|
|
|
DB_POOL_MAX=10
|
2019-05-29 19:09:44 +04:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Generated link length
|
|
|
|
LINK_LENGTH=6
|
|
|
|
|
2025-01-15 14:04:52 +03:30
|
|
|
# Optional - Alphabet used to generate custom addresses
|
|
|
|
# Default value omits o, O, 0, i, I, l, 1, and j to avoid confusion when reading the URL
|
|
|
|
LINK_CUSTOM_ALPHABET=abcdefghkmnpqrstuvwxyzABCDEFGHKLMNPQRSTUVWXYZ23456789
|
|
|
|
|
2025-01-15 15:35:30 +03:30
|
|
|
# Optional - Tells the app that it's running behind a proxy server
|
|
|
|
# and that it should get the IP address from that proxy server
|
|
|
|
# if you're not using a proxy server then set this to false, otherwise users can override their IP address
|
|
|
|
TRUST_PROXY=true
|
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Redis host and port
|
2024-10-21 14:59:55 +03:30
|
|
|
REDIS_ENABLED=false
|
2020-07-26 15:03:23 +04:30
|
|
|
REDIS_HOST=127.0.0.1
|
2019-05-29 19:09:44 +04:30
|
|
|
REDIS_PORT=6379
|
|
|
|
REDIS_PASSWORD=
|
2025-01-04 13:23:46 +03:30
|
|
|
# The number for Redis database, between 0 and 15. Defaults to 0.
|
2022-11-10 15:05:11 +03:30
|
|
|
# If you don't know what this is, then you probably don't need to change it.
|
|
|
|
REDIS_DB=0
|
2019-05-29 19:09:44 +04:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Disable registration. Default is true.
|
|
|
|
DISALLOW_REGISTRATION=true
|
2020-08-09 15:25:18 +04:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Disable anonymous link creation. Default is true.
|
|
|
|
DISALLOW_ANONYMOUS_LINKS=true
|
2020-08-09 15:25:18 +04:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - This would be shown to the user on the settings page
|
2024-09-12 14:26:15 +03:30
|
|
|
# It's only for display purposes and has no other use
|
|
|
|
SERVER_IP_ADDRESS=
|
2025-01-07 12:19:46 +03:30
|
|
|
SERVER_CNAME_ADDRESS=
|
2024-09-12 14:26:15 +03:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Use HTTPS for links with custom domain
|
2025-01-06 10:30:12 +03:30
|
|
|
# It's on you to generate SSL certificates for those domains manually, at least on this version for now
|
2019-11-02 18:32:24 +03:30
|
|
|
CUSTOM_DOMAIN_USE_HTTPS=false
|
2019-10-08 21:56:03 +03:30
|
|
|
|
2024-09-23 13:45:39 +03:30
|
|
|
# Optional - Email is used to verify or change email address, reset password, and send reports.
|
|
|
|
# If it's disabled, all the above functionality would be disabled as well.
|
|
|
|
# MAIL_FROM example: "Kutt <support@kutt.it>". Leave it empty to use MAIL_USER.
|
|
|
|
# More info on the configuration on http://nodemailer.com/.
|
|
|
|
MAIL_ENABLED=false
|
2019-05-29 19:09:44 +04:30
|
|
|
MAIL_HOST=
|
2025-01-18 10:35:36 +03:30
|
|
|
MAIL_PORT=587
|
2019-06-15 18:27:31 +04:30
|
|
|
MAIL_SECURE=true
|
2019-05-29 19:09:44 +04:30
|
|
|
MAIL_USER=
|
|
|
|
MAIL_FROM=
|
|
|
|
MAIL_PASSWORD=
|
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Enable rate limitting for some API routes
|
2024-11-23 14:43:18 +03:30
|
|
|
ENABLE_RATE_LIMIT=false
|
|
|
|
|
2025-01-08 09:46:30 +03:30
|
|
|
# Optional - The email address that will receive submitted reports
|
2020-01-02 20:09:59 +03:30
|
|
|
REPORT_EMAIL=
|
2019-05-29 19:09:44 +04:30
|
|
|
|
2025-01-04 13:23:46 +03:30
|
|
|
# Optional - Support email to show on the app
|
2019-11-02 18:32:24 +03:30
|
|
|
CONTACT_EMAIL=
|