Add fake telegram "middle-proxy" server and http config server implementations

And make it possible to make proxy connect to it
This commit is contained in:
Сергей Прохоров 2019-03-01 17:00:54 +01:00
parent aa6e06a4d5
commit 871ab11ad3
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337
4 changed files with 307 additions and 5 deletions

View file

@ -63,12 +63,17 @@
%% Should be module with function `notify/4' exported.
%% See mtp_metric:notify/4 for details
%% {metric_backend, my_metric_backend}
%% {metric_backend, my_metric_backend},
%% User-space recv socket buffer sizes. Set to higher if you have
%% enough RAM
%% {upstream_socket_buffer_size, 51200}, %50kb
%% {downstream_socket_buffer_size, 512000} %500kb
%% {downstream_socket_buffer_size, 512000}, %500kb
%% Where to fetch telegram proxy configuration
%% Mostly used to testing
%% {proxy_secret_url, "https://core.telegram.org/getProxySecret"},
%% {proxy_config_url, "https://core.telegram.org/getProxyConfig"},
]},
{modules, []},