2016-03-02 15:50:50 +00:00
|
|
|
[
|
2016-06-15 16:10:22 +00:00
|
|
|
{lager, [
|
|
|
|
{error_logger_hwm, 600},
|
2016-10-10 11:41:18 +00:00
|
|
|
{log_root, "/var/log/hellgate"},
|
|
|
|
{crash_log, "crash.log"},
|
2016-06-15 16:10:22 +00:00
|
|
|
{handlers, [
|
2016-10-10 11:41:18 +00:00
|
|
|
{lager_file_backend, [
|
|
|
|
{file, "console.json"},
|
|
|
|
{level, debug},
|
|
|
|
{formatter, lager_logstash_formatter}
|
|
|
|
]}
|
2016-06-15 16:10:22 +00:00
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{hellgate, [
|
2016-10-07 11:32:51 +00:00
|
|
|
{ip, "::"},
|
2016-06-29 13:58:48 +00:00
|
|
|
{port, 8022},
|
2017-06-15 16:57:02 +00:00
|
|
|
{net_opts, [
|
2017-04-03 14:47:58 +00:00
|
|
|
% Bump keepalive timeout up to a minute
|
2017-06-15 16:57:02 +00:00
|
|
|
{timeout, 60000}
|
|
|
|
]},
|
2016-11-15 07:59:17 +00:00
|
|
|
{service_urls, #{
|
|
|
|
'Automaton' => <<"http://machinegun:8022/v1/automaton">>,
|
|
|
|
'EventSink' => <<"http://machinegun:8022/v1/event_sink">>,
|
|
|
|
'Accounter' => <<"http://shumway:8022/accounter">>
|
2017-02-01 18:44:07 +00:00
|
|
|
}},
|
|
|
|
{proxy_opts, #{
|
|
|
|
transport_opts => #{
|
|
|
|
connect_timeout => 1000,
|
|
|
|
recv_timeout => 40000
|
|
|
|
}
|
2016-11-15 07:59:17 +00:00
|
|
|
}}
|
2017-07-17 13:33:57 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{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">>
|
|
|
|
}}
|
2016-06-15 16:10:22 +00:00
|
|
|
]}
|
2016-03-02 15:50:50 +00:00
|
|
|
].
|