hellgate/config/sys.config
Anton Belyaev 80f24744af HG-182: Introduce customer as a payment resource (#141)
* HG-231: Introduce customers (#114)

* HG-231: Pass aux state down to the machine handlers (#137)

* HG-231: Handle customer aux_state (#138)

* HG-231: Add customer status change event (#140)

* HG-182: Switch to master rbkmoney/damsel@478235a
2017-10-23 16:44:42 +03:00

51 lines
1.6 KiB
Plaintext

[
{lager, [
{error_logger_hwm, 600},
{log_root, "/var/log/hellgate"},
{crash_log, "crash.log"},
{handlers, [
{lager_file_backend, [
{file, "console.json"},
{level, debug},
{formatter, lager_logstash_formatter}
]}
]}
]},
{hellgate, [
{ip, "::"},
{port, 8022},
{net_opts, [
% Bump keepalive timeout up to a minute
{timeout, 60000}
]},
{service_urls, #{
automaton => <<"http://machinegun:8022/v1/automaton">>,
eventsink => <<"http://machinegun:8022/v1/event_sink">>,
accounter => <<"http://shumway:8022/accounter">>,
party_management => <<"http://hellgate:8022/v1/processing/partymgmt">>,
customer_management => <<"http://hellgate:8022/v1/processing/customer_management">>,
% TODO make more consistent
recurrent_paytool => <<"http://hellgate:8022/v1/processing/recpaytool">>
}},
{proxy_opts, #{
transport_opts => #{
connect_timeout => 1000,
recv_timeout => 40000
}
}}
]},
{dmt_client, [
{cache_update_interval, 5000}, % milliseconds
{max_cache_size, #{
elements => 20,
memory => 52428800 % 50Mb
}},
{service_urls, #{
'Repository' => <<"dominant:8022/v1/domain/repository">>,
'RepositoryClient' => <<"dominant:8022/v1/domain/repository_client">>
}}
]}
].