TelegramApiServer/.env.example
2020-10-08 02:27:07 +03:00

48 lines
1.2 KiB
Plaintext

# ENV file version
# Check for outdated .env files
VERSION=1
SERVER_ADDRESS=127.0.0.1
SERVER_PORT=9503
MEMORY_LIMIT=256M
TIMEZONE=UTC
# List of allowed clients. Separate with comma.
# Leave blanc, to allow requests from all IP (dangerous!)
IP_WHITELIST=127.0.0.1
# TELEGRAM CLIENT
TELEGRAM_API_ID=
TELEGRAM_API_HASH=
# FATAL_ERROR = 0; ERROR = 1; WARNING = 2; const NOTICE = 3; VERBOSE = 4; ULTRA_VERBOSE = 5;
LOGGER_LEVEL=2
# TELEGRAM SOCKS5 PROXY (optional)
TELEGRAM_PROXY_ADDRESS=
TELEGRAM_PROXY_PORT=
TELEGRAM_PROXY_USERNAME=
TELEGRAM_PROXY_PASSWORD=
# DB
# memory
# Keep all data in memory/session file.
# This is default behavior
# mysql
# Keep part of data in mysql database.
# Reduce memory consumption and session size. Beta function.
# MariaDb + InnoDb Preffered.
# Tables and DB will be created if not exists.
# Change this type to convert session:
DB_TYPE=memory
# MYSQL Settings. Required, when DB_TYPE=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=
DB_DATABASE=MadelineProto
DB_MAX_CONNECTIONS=10
DB_IDLE_TIMEOUT=60
# Recent data will be stored in memory this amount of time:
DB_CACHE_TTL="+5 minutes"