mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 10:45:21 +00:00
143 lines
4.7 KiB
Plaintext
143 lines
4.7 KiB
Plaintext
[
|
|
|
|
{lager, [
|
|
{error_logger_hwm, 600},
|
|
{log_root, "/var/log/fistful-server"},
|
|
{crash_log, "crash.log"},
|
|
{handlers, [
|
|
{lager_file_backend, [
|
|
{file, "console.json"},
|
|
{level, debug},
|
|
{formatter, lager_logstash_formatter}
|
|
]}
|
|
]}
|
|
]},
|
|
|
|
{scoper, [
|
|
{storage, scoper_storage_lager}
|
|
]},
|
|
|
|
{dmt_client, [
|
|
{max_cache_size, #{
|
|
elements => 1
|
|
}},
|
|
{service_urls, #{
|
|
'Repository' => <<"http://dominant:8022/v1/domain/repository">>,
|
|
'RepositoryClient' => <<"http://dominant:8022/v1/domain/repository_client">>
|
|
}}
|
|
]},
|
|
|
|
{fistful, [
|
|
{providers, #{
|
|
<<"ncoeps">> => #{
|
|
payment_institution_id => 100,
|
|
identity_classes => #{
|
|
<<"person">> => #{
|
|
name => <<"Person">>,
|
|
contract_template_id => 10000,
|
|
initial_level => <<"anonymous">>,
|
|
levels => #{
|
|
<<"anonymous">> => #{
|
|
name => <<"Anonymous">>,
|
|
contractor_level => none
|
|
},
|
|
<<"partly-identified">> => #{
|
|
name => <<"Partially identified">>,
|
|
contractor_level => partial
|
|
},
|
|
<<"identified">> => #{
|
|
name => <<"Fully identified">>,
|
|
contractor_level => full
|
|
}
|
|
},
|
|
challenges => #{
|
|
<<"esia">> => #{
|
|
name => <<"ЕСИА">>,
|
|
base => <<"anonymous">>,
|
|
target => <<"partly-identified">>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}},
|
|
{services, #{
|
|
'partymgmt' => "http://hellgate:8022/v1/processing/partymgmt",
|
|
'accounter' => "http://shumway:8022/accounter",
|
|
'identification' => "http://identification:8022/v1/identification"
|
|
}}
|
|
]},
|
|
|
|
{ff_withdraw, [
|
|
{provider, #{
|
|
adapter => #{
|
|
event_handler => scoper_woody_event_handler,
|
|
url => <<"http://adapter-vtb:8022/proxy/vtb-mpi-vtb/p2p-credit">>
|
|
},
|
|
adapter_opts => #{
|
|
<<"merchant_id">> => <<"mcpitmpitest">>,
|
|
<<"merchant_cn">> => <<"rbkmoneyP2P9999">>,
|
|
<<"merchant_name">> => <<"RBKMoney P2P">>,
|
|
<<"version">> => <<"109">>,
|
|
<<"term_id">> => <<"30001018">>,
|
|
<<"FPTTI">> => <<"PPP">>
|
|
}
|
|
}}
|
|
]},
|
|
|
|
%% wapi
|
|
{wapi, [
|
|
{ip, "::"},
|
|
{port, 8080},
|
|
%% To send ASCII text in 5xx replies
|
|
%% {oops_bodies, #{
|
|
%% 500 => "oops_bodies/500_body"
|
|
%% }},
|
|
{realm, <<"external">>},
|
|
{public_endpoint, <<"http://wapi">>},
|
|
{authorizers, #{
|
|
jwt => #{
|
|
signee => wapi,
|
|
keyset => #{
|
|
wapi => {pem_file, "var/keys/wapi/private.pem"}
|
|
}
|
|
}
|
|
}},
|
|
{service_urls, #{
|
|
webhook_manager => "http://hooker:8022/hook",
|
|
cds_storage => "http://cds:8022/v1/storage",
|
|
identdoc_storage => "http://cds:8022/v1/identity_document_storage"
|
|
}},
|
|
{api_deadlines, #{
|
|
wallet => 5000 % millisec
|
|
}},
|
|
{health_checkers, [
|
|
{erl_health, service , [<<"wapi">>]}
|
|
]}
|
|
]},
|
|
|
|
{ff_server, [
|
|
{ip, "::"},
|
|
{port, 8022},
|
|
{woody_opts, #{
|
|
net_opts => [
|
|
% Bump keepalive timeout up to a minute
|
|
{timeout, 60000}
|
|
]
|
|
}},
|
|
{services, #{
|
|
'automaton' => "http://machinegun:8022/v1/automaton"
|
|
}},
|
|
{net_opts, [
|
|
% Bump keepalive timeout up to a minute
|
|
{timeout, 60000}
|
|
]},
|
|
{health_checkers, [
|
|
{erl_health, disk , ["/", 99] },
|
|
{erl_health, cg_memory, [99] },
|
|
{erl_health, service , [<<"fistful-server">>]}
|
|
]}
|
|
]}
|
|
|
|
].
|