mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-05-13 08:46:46 +00:00
33 lines
599 B
Erlang
33 lines
599 B
Erlang
%% -*- mode: erlang -*-
|
|
[
|
|
{mtproto_proxy,
|
|
[
|
|
{ports, []},
|
|
{external_ip, "127.0.0.1"},
|
|
{listen_ip, "127.0.0.1"},
|
|
{num_acceptors, 2},
|
|
{init_dc_connections, 1},
|
|
{metric_backend, mtp_test_metric}
|
|
]},
|
|
|
|
%% Logging config
|
|
{lager,
|
|
[{log_root, "log"},
|
|
{crash_log, "test-crash.log"},
|
|
{handlers,
|
|
[
|
|
{lager_console_backend,
|
|
[{level, critical}]},
|
|
|
|
{lager_file_backend,
|
|
[{file, "test-application.log"},
|
|
{level, info},
|
|
|
|
%% Do fsync only on critical messages
|
|
{sync_on, critical}
|
|
]}
|
|
]}]},
|
|
|
|
{sasl,
|
|
[{errlog_type, error}]}
|
|
].
|