By default, the key will be automatically generated at startup and saved in the Docker volume, if you want you can specify another key:
-e SECRET = 00baadf00d15abad1deaa51sbaadcafe docker run -d -p443:443 -v proxy-config:/data -e SECRET=00baadf00d15abad1deaa51sbaadcafe telegrammessenger/proxy:latest
Or a few:
docker run -d -p443:443 -v proxy-config:/data -e SECRET=935ddceb2f6bbbb78363b224099f75c8,2084c7e58d8213296a3206da70356c81 telegrammessenger/proxy:latest
Or you can ask to generate several keys for you:
docker run -d -p443:443 -v proxy-config:/data -e SECRET_COUNT=4 telegrammessenger/proxy:latest
By default, it launches 2 worker, you can change the setting as follows:
WORKERS = 16 docker run -d -p443:443 -v proxy-config:/data -e WORKERS=16 telegrammessenger/proxy:latest
Monitoring is available at:
localhost : 2398 / stats
You can get statistics as follows:
docker exec mtproto-proxy curl http://localhost:2398/stats
ready_targets: The number of Telegram servers that are ready to service requests from a proxy
active_targets: Number of Telegram servers serving requests with a proxy
total_special_connections: Number of incoming connections
total_max_special_connections: Incoming connections limit