2020-06-07 21:09:49 +02:00
|
|
|
# ENV file version
|
|
|
|
# Check for outdated .env files
|
|
|
|
VERSION=1
|
|
|
|
|
2020-06-07 21:03:19 +02:00
|
|
|
SERVER_ADDRESS=0.0.0.0
|
|
|
|
SERVER_PORT=9503
|
|
|
|
|
|
|
|
MEMORY_LIMIT=256M
|
2020-06-13 00:44:52 +02:00
|
|
|
TIMEZONE=UTC
|
2020-10-03 01:27:32 +02:00
|
|
|
#If madelineProto throws fatal exceptions script will be stopped, so docker/supervisor can restart it.
|
|
|
|
EXIT_ON_FATAL_EXCEPTION=true
|
2020-06-07 21:03:19 +02:00
|
|
|
|
|
|
|
# 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=
|
2020-06-07 21:09:49 +02:00
|
|
|
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=mysql
|
|
|
|
# MYSQL Settings. Required, when DB_TYPE=mysql
|
2020-06-25 00:33:18 +02:00
|
|
|
MYSQL_HOST=mysql
|
2020-06-07 21:09:49 +02:00
|
|
|
MYSQL_PORT=3306
|
2020-06-25 00:33:18 +02:00
|
|
|
MYSQL_USER=root
|
|
|
|
MYSQL_PASSWORD=
|
|
|
|
MYSQL_DATABASE=MadelineProto
|
2020-06-07 21:09:49 +02:00
|
|
|
MYSQL_MAX_CONNECTIONS=10
|
|
|
|
MYSQL_IDLE_TIMEOUT=60
|
|
|
|
# Recent data will be stored in memory this amount of time:
|
2020-06-25 00:33:18 +02:00
|
|
|
MYSQL_CACHE_TTL="+5 minutes"
|