2016-08-31 17:56:24 +00:00
|
|
|
[
|
2016-09-05 12:21:44 +00:00
|
|
|
|
|
|
|
{lager, [
|
|
|
|
{error_logger_hwm, 600},
|
2016-10-13 02:54:36 +00:00
|
|
|
{log_root, "/var/log/capi"},
|
2016-09-05 12:21:44 +00:00
|
|
|
{handlers, [
|
2016-10-13 02:54:36 +00:00
|
|
|
{lager_console_backend, debug},
|
|
|
|
{lager_file_backend, [
|
|
|
|
{file, "console.json"},
|
|
|
|
{level, debug},
|
|
|
|
{formatter, lager_logstash_formatter}
|
|
|
|
]}
|
2017-05-12 12:28:38 +00:00
|
|
|
]},
|
|
|
|
{extra_sinks, [
|
|
|
|
{capi_access_lager_event, [
|
|
|
|
{handlers, [
|
|
|
|
{lager_file_backend, [
|
|
|
|
{file, "access_log.json"},
|
|
|
|
{level, info},
|
|
|
|
{formatter, lager_logstash_formatter}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
{async_threshold, 20},
|
|
|
|
{async_threshold_window, 5}
|
|
|
|
]}
|
2016-09-05 12:21:44 +00:00
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{capi, [
|
2017-02-04 16:08:42 +00:00
|
|
|
{ip, "::"},
|
2016-08-31 17:56:24 +00:00
|
|
|
{port, 8080},
|
2017-05-03 11:00:02 +00:00
|
|
|
%% To send ASCII text in 5xx replies
|
|
|
|
%% {oops_bodies, #{
|
|
|
|
%% 500 => "oops_bodies/500_body"
|
|
|
|
%% }},
|
2017-08-15 12:34:27 +00:00
|
|
|
{reporter_url_lifetime, 60}, % seconds
|
2016-09-05 12:21:44 +00:00
|
|
|
{service_type, real},
|
2017-02-22 11:36:17 +00:00
|
|
|
{authorizers, #{
|
|
|
|
jwt => #{
|
|
|
|
signee => capi,
|
|
|
|
keyset => #{
|
|
|
|
capi => {pem_file, "var/keys/capi/private.pem"}
|
|
|
|
}
|
|
|
|
}
|
2018-04-13 12:35:02 +00:00
|
|
|
}},
|
|
|
|
{health_checkers, [
|
|
|
|
{erl_health, disk , ["/", 99] },
|
|
|
|
{erl_health, cg_memory, [99] },
|
|
|
|
{erl_health, service , [<<"capi">>]}
|
2018-09-28 11:15:43 +00:00
|
|
|
]},
|
|
|
|
{max_deadline, 60000} % milliseconds
|
2016-09-05 12:21:44 +00:00
|
|
|
]},
|
|
|
|
|
2017-10-10 21:02:17 +00:00
|
|
|
{capi_woody_client, [
|
2016-09-05 12:21:44 +00:00
|
|
|
{service_urls, #{
|
2017-10-23 14:01:01 +00:00
|
|
|
party_management => "http://hellgate:8022/v1/processing/partymgmt",
|
|
|
|
customer_management => "http://hellgate:8022/v1/processing/customer_management",
|
|
|
|
accounter => "http://shumway:8022/accounter",
|
|
|
|
invoicing => "http://hellgate:8022/v1/processing/invoicing",
|
|
|
|
invoice_templating => "http://hellgate:8022/v1/processing/invoice_templating",
|
|
|
|
webhook_manager => "http://hooker:8022/hook",
|
|
|
|
cds_storage => "http://cds:8022/v1/storage",
|
|
|
|
merchant_stat => "http://magista:8022/stat",
|
|
|
|
reporting => "http://reporter:8022/reports",
|
2018-05-08 13:26:49 +00:00
|
|
|
geo_ip_service => "http://columbus:8022/repo",
|
2018-05-31 14:17:43 +00:00
|
|
|
payment_tool_provider_apple_pay => "http://adapter-appepay:8022/provider/apple",
|
2018-10-04 10:55:14 +00:00
|
|
|
payment_tool_provider_google_pay => "http://adapter-goolepay:8022/provider/google",
|
|
|
|
binbase => "http://binbase:8022/v1/binbase"
|
2018-07-06 07:50:08 +00:00
|
|
|
}},
|
|
|
|
{service_deadlines, #{
|
|
|
|
party_management => 5000, % milliseconds
|
|
|
|
customer_management => 10000
|
2018-11-26 08:46:01 +00:00
|
|
|
}},
|
|
|
|
{service_retries, #{
|
|
|
|
party_management => #{
|
|
|
|
% function => retry strategy
|
|
|
|
% '_' work as "any"
|
|
|
|
% default value is 'finish'
|
|
|
|
% for more info look genlib_retry :: strategy()
|
|
|
|
% https://github.com/rbkmoney/genlib/blob/master/src/genlib_retry.erl#L19
|
|
|
|
'Get' => {linear, 3, 1000},
|
|
|
|
'_' => finish
|
|
|
|
}
|
2016-09-05 12:21:44 +00:00
|
|
|
}}
|
2018-05-17 11:10:30 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{dmt_client, [
|
|
|
|
{cache_update_interval, 30000}, % milliseconds
|
|
|
|
{max_cache_size, #{
|
|
|
|
elements => 20,
|
|
|
|
memory => 52428800 % 50Mb
|
|
|
|
}},
|
|
|
|
{service_urls, #{
|
|
|
|
'Repository' => <<"dominant:8022/v1/domain/repository">>,
|
|
|
|
'RepositoryClient' => <<"dominant:8022/v1/domain/repository_client">>
|
|
|
|
}}
|
2019-01-14 21:37:48 +00:00
|
|
|
]},
|
2018-05-17 11:10:30 +00:00
|
|
|
|
2019-01-14 21:37:48 +00:00
|
|
|
{how_are_you, [
|
|
|
|
{metrics_publishers, [
|
|
|
|
% {hay_statsd_publisher, #{
|
|
|
|
% key_prefix => <<"capi-v2.">>,
|
|
|
|
% host => "localhost",
|
|
|
|
% port => 8125
|
|
|
|
% }}
|
|
|
|
]}
|
|
|
|
]}
|
2016-08-31 17:56:24 +00:00
|
|
|
].
|