2020-05-17 22:19:21 +02:00
|
|
|
# ENV file version
|
|
|
|
# Check for outdated .env files
|
|
|
|
VERSION=1
|
|
|
|
|
2019-06-20 18:51:58 +02:00
|
|
|
SERVER_ADDRESS=127.0.0.1
|
|
|
|
SERVER_PORT=9503
|
2019-01-07 13:24:29 +01:00
|
|
|
|
2020-05-08 00:16:35 +02:00
|
|
|
MEMORY_LIMIT=256M
|
|
|
|
|
2020-02-19 14:55:40 +01:00
|
|
|
# List of allowed clients. Separate with comma.
|
|
|
|
# Leave blanc, to allow requests from all IP (dangerous!)
|
2019-03-19 23:56:28 +01:00
|
|
|
IP_WHITELIST=127.0.0.1
|
2019-01-20 18:20:41 +01:00
|
|
|
|
2019-01-07 13:24:29 +01:00
|
|
|
# TELEGRAM CLIENT
|
|
|
|
TELEGRAM_API_ID=
|
|
|
|
TELEGRAM_API_HASH=
|
2019-12-08 13:46:54 +01:00
|
|
|
# FATAL_ERROR = 0; ERROR = 1; WARNING = 2; const NOTICE = 3; VERBOSE = 4; ULTRA_VERBOSE = 5;
|
2020-03-11 00:20:14 +01:00
|
|
|
LOGGER_LEVEL=2
|
2019-01-07 13:24:29 +01:00
|
|
|
|
|
|
|
# TELEGRAM SOCKS5 PROXY (optional)
|
|
|
|
TELEGRAM_PROXY_ADDRESS=
|
|
|
|
TELEGRAM_PROXY_PORT=
|
|
|
|
TELEGRAM_PROXY_USERNAME=
|
2020-04-26 20:50:42 +02:00
|
|
|
TELEGRAM_PROXY_PASSWORD=
|
|
|
|
|
2020-05-17 22:19:21 +02:00
|
|
|
# DB
|
2020-05-16 22:09:25 +02:00
|
|
|
# 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.
|
2020-05-17 22:19:21 +02:00
|
|
|
|
|
|
|
# Change this type to convert session:
|
2020-05-16 22:09:25 +02:00
|
|
|
DB_TYPE=memory
|
2020-05-17 22:19:21 +02:00
|
|
|
# MYSQL Settings. Required, when DB_TYPE=mysql
|
2020-04-26 20:50:42 +02:00
|
|
|
MYSQL_HOST='127.0.0.1'
|
|
|
|
MYSQL_PORT=3306
|
|
|
|
MYSQL_USER='root'
|
|
|
|
MYSQL_PASSWORD=''
|
2020-05-04 22:18:54 +02:00
|
|
|
MYSQL_DATABASE='MadelineProto'
|
|
|
|
MYSQL_MAX_CONNECTIONS=10
|
2020-05-17 22:19:21 +02:00
|
|
|
MYSQL_IDLE_TIMEOUT=60
|
|
|
|
# Recent data will be stored in memory this amount of time:
|
|
|
|
MYSQL_CACHE_TTL='+5 minutes'
|