2020-06-07 21:09:49 +02:00
|
|
|
# ENV file version
|
|
|
|
# Check for outdated .env files
|
|
|
|
VERSION=1
|
|
|
|
|
2024-04-15 17:09:24 +02:00
|
|
|
# See "ports" in docker-compose.yml.
|
2020-06-07 21:03:19 +02:00
|
|
|
SERVER_ADDRESS=0.0.0.0
|
|
|
|
SERVER_PORT=9503
|
2024-04-16 19:17:27 +02:00
|
|
|
# If you use nginx, then provide here name of client header. for example x-real-ip or x-forwarded-for
|
|
|
|
REAL_IP_HEADER=
|
2020-06-07 21:03:19 +02:00
|
|
|
|
|
|
|
MEMORY_LIMIT=256M
|
2020-06-13 00:44:52 +02:00
|
|
|
TIMEZONE=UTC
|
2020-06-07 21:03:19 +02:00
|
|
|
|
2023-09-02 23:45:01 +02:00
|
|
|
# REQUEST WILL BE GROUPED INTO BULKS AND EXECUTED AS SINGLE BULK
|
|
|
|
# VALUE IN SECOND
|
|
|
|
# DECREASE TO REDUCE LATENCY, INCREASE TO REDUCE LOAD ON SERVER.
|
|
|
|
# SET to 0 to DISABLE
|
|
|
|
REQUESTS_BULK_INTERVAL=0.5
|
|
|
|
|
2020-06-07 21:03:19 +02:00
|
|
|
# List of allowed clients. Separate with comma.
|
2021-03-30 01:18:03 +02:00
|
|
|
# Leave blanc, to allow requests from all IP (THIS WILL MAKE API UNSECURE!)
|
|
|
|
# To recieve requests from internet also need to (THIS WILL MAKE API UNSECURE!):
|
|
|
|
# 1) remove `127.0.0.1:` from ports in docker-compose.yml. Should be: ` - "9503:9503"`.
|
|
|
|
# 2) recreate container `docker-compose up -d`
|
2020-06-07 21:03:19 +02:00
|
|
|
IP_WHITELIST=127.0.0.1
|
|
|
|
|
2024-04-15 17:09:24 +02:00
|
|
|
# Allow requests from any IP with given user and password
|
|
|
|
# Example: {"myusername": "mySuperStrongPassword", "otherName": "otherPassword"}
|
|
|
|
PASSWORDS={}
|
|
|
|
|
2020-06-07 21:03:19 +02:00
|
|
|
# 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
|
|
|
|
|
2023-12-11 15:55:58 +01:00
|
|
|
# TELEGRAM SOCKS5 PROXY (optional)
|
|
|
|
TELEGRAM_PROXY_ADDRESS=
|
|
|
|
TELEGRAM_PROXY_PORT=
|
|
|
|
TELEGRAM_PROXY_USERNAME=
|
|
|
|
TELEGRAM_PROXY_PASSWORD=
|
|
|
|
|
2020-06-07 21:09:49 +02:00
|
|
|
# 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-10-03 01:50:56 +02:00
|
|
|
DB_HOST=mysql
|
|
|
|
DB_PORT=3306
|
|
|
|
DB_USER=root
|
|
|
|
DB_PASSWORD=
|
|
|
|
DB_DATABASE=MadelineProto
|
|
|
|
DB_MAX_CONNECTIONS=10
|
|
|
|
DB_IDLE_TIMEOUT=60
|
2020-06-07 21:09:49 +02:00
|
|
|
# Recent data will be stored in memory this amount of time:
|
2020-11-09 01:07:34 +01:00
|
|
|
DB_CACHE_TTL="+5 minutes"
|
2023-12-11 17:50:59 +01:00
|
|
|
# Options: serialize, igbinary
|
|
|
|
DB_SERIALIZER=serialize
|
2023-08-14 01:22:07 +02:00
|
|
|
# Enable to add cache info about users to database. Disable if you only read data from channels.
|
|
|
|
DB_ENABLE_MIN_DATABASE=0
|
2023-10-25 00:11:34 +02:00
|
|
|
# Enable file metadata cache
|
2024-04-16 19:17:27 +02:00
|
|
|
DB_ENABLE_FILE_REFERENCE_DATABASE=0
|