kutt/.example.env

88 lines
2.3 KiB
Bash
Raw Normal View History

2019-05-29 19:09:44 +04:30
# App port to run on
PORT=3000
2020-09-19 13:17:07 +02:00
# 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
2019-05-29 19:09:44 +04:30
# 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
2019-12-27 16:31:07 +03:00
# Generated link length
LINK_LENGTH=6
2024-09-25 16:34:43 +03:30
# Database client. Available clients for the supported databases:
# pg | pg-native | sqlite3 | better-sqlite3 | mysql | mysql2 | oracledb | tedious
DB_CLIENT=sqlite3
# SQL database credential details
DB_HOST=localhost
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=
DB_SSL=false
2024-09-25 16:34:43 +03:30
DB_POOL_MIN=0
DB_POOL_MAX=10
# SQLite database file name. Only if you use SQLite.
DB_FILENAME=data
2019-05-29 19:09:44 +04:30
# Redis host and port
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=
2022-11-10 15:05:11 +03:30
# Optional: The number for Redis database, between 0 and 15. Defaults to 0.
# 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
# Disable registration
DISALLOW_REGISTRATION=false
# Disable anonymous link creation
DISALLOW_ANONYMOUS_LINKS=false
2019-05-29 19:09:44 +04:30
# The daily limit for each user
USER_LIMIT_PER_DAY=50
2024-09-12 14:26:15 +03:30
# This would be shown to the user on the settings page
# It's only for display purposes and has no other use
SERVER_IP_ADDRESS=
2019-06-15 18:54:56 +04:30
# Create a cooldown for non-logged in users in minutes
# Would be ignored if DISALLOW_ANONYMOUS_LINKS is set to true
2019-06-15 17:46:33 +04:30
# Set 0 to disable
NON_USER_COOLDOWN=0
2019-07-06 17:13:59 +04:30
# Max number of visits for each link to have detailed stats
2019-07-09 19:14:08 +04:30
DEFAULT_MAX_STATS_PER_LINK=5000
2019-07-06 17:13:59 +04:30
# Use HTTPS for links with custom domain
CUSTOM_DOMAIN_USE_HTTPS=false
2019-05-29 19:09:44 +04:30
# A passphrase to encrypt JWT. Use a long and secure key.
JWT_SECRET=securekey
# Admin emails so they can access admin actions on settings page
# Comma seperated
ADMIN_EMAILS=
2024-09-23 13:43:39 +03:30
# Optional - Google Cloud API to prevent from users from submitting malware URLs.
2019-05-29 19:09:44 +04:30
# Get it from https://developers.google.com/safe-browsing/v4/get-started
GOOGLE_SAFE_BROWSING_KEY=
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=
2019-06-01 18:01:32 +04:30
MAIL_PORT=
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=
# The email address that will receive submitted reports.
REPORT_EMAIL=
2019-05-29 19:09:44 +04:30
# Support email to show on the app
CONTACT_EMAIL=