2018-06-13 13:43:48 +00:00
|
|
|
[
|
2019-06-27 15:58:45 +00:00
|
|
|
{kernel, [
|
|
|
|
{log_level, info},
|
|
|
|
{logger, [
|
|
|
|
{handler, default, logger_std_h, #{
|
|
|
|
level => debug,
|
|
|
|
config => #{
|
|
|
|
type => {file, "/var/log/fistful-server/console.json"},
|
|
|
|
sync_mode_qlen => 20
|
|
|
|
},
|
|
|
|
formatter => {logger_logstash_formatter, #{}}
|
|
|
|
}}
|
2018-06-13 13:43:48 +00:00
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{scoper, [
|
2019-06-27 15:58:45 +00:00
|
|
|
{storage, scoper_storage_logger}
|
2018-06-13 13:43:48 +00:00
|
|
|
]},
|
|
|
|
|
2018-07-05 10:57:59 +00:00
|
|
|
{dmt_client, [
|
2021-08-23 15:29:04 +00:00
|
|
|
{cache_update_interval, 5000}, % milliseconds
|
2018-07-05 10:57:59 +00:00
|
|
|
{max_cache_size, #{
|
2020-01-27 13:40:48 +00:00
|
|
|
elements => 20,
|
2021-08-23 15:29:04 +00:00
|
|
|
memory => 52428800 % 50Mb
|
2018-07-05 10:57:59 +00:00
|
|
|
}},
|
2020-01-27 13:40:48 +00:00
|
|
|
{woody_event_handlers, [
|
|
|
|
{scoper_woody_event_handler, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
2018-07-05 10:57:59 +00:00
|
|
|
{service_urls, #{
|
2021-08-23 15:29:04 +00:00
|
|
|
'Repository' => <<"http://dominant:8022/v1/domain/repository">>,
|
2018-07-05 10:57:59 +00:00
|
|
|
'RepositoryClient' => <<"http://dominant:8022/v1/domain/repository_client">>
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
2019-10-07 08:45:00 +00:00
|
|
|
{party_client, [
|
|
|
|
{services, #{
|
|
|
|
party_management => "http://hellgate:8022/v1/processing/partymgmt"
|
|
|
|
}},
|
|
|
|
{woody, #{
|
2021-08-24 12:58:11 +00:00
|
|
|
cache_mode => safe, % disabled | safe | aggressive
|
2019-10-07 08:45:00 +00:00
|
|
|
options => #{
|
|
|
|
woody_client => #{
|
2021-08-24 12:58:11 +00:00
|
|
|
event_handler =>
|
|
|
|
{scoper_woody_event_handler, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000
|
|
|
|
}
|
2020-01-27 13:40:48 +00:00
|
|
|
}
|
2021-08-24 12:58:11 +00:00
|
|
|
}}
|
2019-10-07 08:45:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
2018-06-13 13:43:48 +00:00
|
|
|
{fistful, [
|
|
|
|
{providers, #{
|
|
|
|
<<"ncoeps">> => #{
|
|
|
|
payment_institution_id => 100,
|
2018-10-05 11:19:46 +00:00
|
|
|
routes => [<<"mocketbank">>],
|
2021-08-24 12:58:11 +00:00
|
|
|
identity_classes => #{
|
|
|
|
<<"person">> => #{
|
|
|
|
name => <<"Person">>,
|
|
|
|
contract_template_id => 10000,
|
|
|
|
initial_level => <<"anonymous">>,
|
|
|
|
levels => #{
|
|
|
|
<<"anonymous">> => #{
|
|
|
|
name => <<"Anonymous">>,
|
|
|
|
contractor_level => none
|
2018-06-21 17:02:37 +00:00
|
|
|
},
|
|
|
|
<<"partly-identified">> => #{
|
2021-08-24 12:58:11 +00:00
|
|
|
name => <<"Partially identified">>,
|
|
|
|
contractor_level => partial
|
2018-06-21 17:02:37 +00:00
|
|
|
},
|
2021-08-24 12:58:11 +00:00
|
|
|
<<"identified">> => #{
|
|
|
|
name => <<"Fully identified">>,
|
|
|
|
contractor_level => full
|
2018-06-21 17:02:37 +00:00
|
|
|
}
|
|
|
|
},
|
2021-08-24 12:58:11 +00:00
|
|
|
challenges => #{
|
|
|
|
<<"esia">> => #{
|
|
|
|
name => <<"ЕСИА">>,
|
|
|
|
base => <<"anonymous">>,
|
|
|
|
target => <<"partly-identified">>
|
2018-06-21 17:02:37 +00:00
|
|
|
}
|
2018-06-13 13:43:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-07-05 10:57:59 +00:00
|
|
|
}},
|
|
|
|
{services, #{
|
2019-10-07 08:45:00 +00:00
|
|
|
'eventsink' => "http://machinegun:8022/v1/event_sink",
|
|
|
|
'automaton' => "http://machinegun:8022/v1/automaton",
|
2021-08-24 12:58:11 +00:00
|
|
|
'accounter' => "http://shumway:8022/shumpune",
|
2018-07-06 13:49:30 +00:00
|
|
|
'identification' => "http://identification:8022/v1/identification"
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
2018-10-05 11:19:46 +00:00
|
|
|
{ff_transfer, [
|
2021-08-23 15:29:04 +00:00
|
|
|
{max_session_poll_timeout, 14400}, %% 4h
|
2021-08-24 12:58:11 +00:00
|
|
|
{withdrawal, #{
|
2020-07-16 13:45:18 +00:00
|
|
|
default_transient_errors => [
|
|
|
|
<<"authorization_failed:temporarily_unavailable">>
|
|
|
|
],
|
|
|
|
party_transient_errors => #{
|
|
|
|
<<"ExamplePartyID">> => [
|
|
|
|
<<"account_limit_exceeded:amount">>,
|
|
|
|
<<"authorization_failed:destination_rejected">>
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}}
|
2018-07-08 16:58:55 +00:00
|
|
|
]},
|
|
|
|
|
2020-02-07 10:34:23 +00:00
|
|
|
{p2p_transfer, [
|
2021-08-23 15:29:04 +00:00
|
|
|
{max_session_poll_timeout, 14400}, %% 4h
|
2020-02-07 10:34:23 +00:00
|
|
|
{score_id, "fraud"}
|
|
|
|
]},
|
|
|
|
|
2018-07-05 10:57:59 +00:00
|
|
|
{ff_server, [
|
2018-06-13 13:43:48 +00:00
|
|
|
{ip, "::"},
|
|
|
|
{port, 8022},
|
2020-01-27 13:40:48 +00:00
|
|
|
{default_woody_handling_timeout, 30000},
|
2018-07-06 13:49:30 +00:00
|
|
|
{net_opts, [
|
|
|
|
% Bump keepalive timeout up to a minute
|
|
|
|
{timeout, 60000}
|
|
|
|
]},
|
2020-02-03 09:21:32 +00:00
|
|
|
{scoper_event_handler_options, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000,
|
|
|
|
max_printable_string_length => 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}},
|
2019-08-22 14:33:39 +00:00
|
|
|
{health_check, #{
|
2021-08-24 12:58:11 +00:00
|
|
|
disk => {erl_health, disk, ["/", 99]},
|
|
|
|
memory => {erl_health, cg_memory, [99]},
|
|
|
|
service => {erl_health, service, [<<"fistful-server">>]}
|
2019-08-22 14:33:39 +00:00
|
|
|
}},
|
2018-11-02 11:21:59 +00:00
|
|
|
{eventsink, #{
|
|
|
|
identity => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/identity'
|
2018-11-02 11:21:59 +00:00
|
|
|
},
|
|
|
|
wallet => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/wallet_v2'
|
2018-11-02 11:21:59 +00:00
|
|
|
},
|
|
|
|
withdrawal => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/withdrawal_v2'
|
2018-11-09 11:38:05 +00:00
|
|
|
},
|
|
|
|
deposit => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/deposit_v1'
|
2018-11-09 11:38:05 +00:00
|
|
|
},
|
|
|
|
destination => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/destination_v2'
|
2018-11-09 11:38:05 +00:00
|
|
|
},
|
|
|
|
source => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/source_v1'
|
2018-11-15 11:32:50 +00:00
|
|
|
},
|
|
|
|
withdrawal_session => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/withdrawal/session_v2'
|
2020-02-07 10:34:23 +00:00
|
|
|
},
|
|
|
|
p2p_transfer => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/p2p_transfer_v1'
|
2020-02-07 10:34:23 +00:00
|
|
|
},
|
|
|
|
p2p_session => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/p2p_transfer/session_v1'
|
2020-02-26 09:41:01 +00:00
|
|
|
},
|
|
|
|
w2w_transfer => #{
|
2020-06-08 14:14:00 +00:00
|
|
|
namespace => 'ff/w2w_transfer_v1'
|
2020-06-22 21:25:34 +00:00
|
|
|
},
|
|
|
|
p2p_template => #{
|
|
|
|
namespace => 'ff/p2p_template_v1'
|
2018-11-02 11:21:59 +00:00
|
|
|
}
|
|
|
|
}}
|
2019-11-15 13:13:20 +00:00
|
|
|
]},
|
2020-06-08 14:14:00 +00:00
|
|
|
|
2021-08-24 12:58:11 +00:00
|
|
|
{how_are_you, [
|
|
|
|
{metrics_publishers, [
|
|
|
|
% {hay_statsd_publisher, #{
|
|
|
|
% key_prefix => <<"fistful-server.">>,
|
|
|
|
% host => "localhost",
|
|
|
|
% port => 8125
|
|
|
|
% }}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
2020-05-14 10:44:52 +00:00
|
|
|
{snowflake, [
|
2021-08-24 12:58:11 +00:00
|
|
|
% {machine_id, 42}
|
2020-05-14 10:44:52 +00:00
|
|
|
]},
|
2019-11-15 13:13:20 +00:00
|
|
|
|
2020-02-07 10:34:23 +00:00
|
|
|
{p2p, [
|
|
|
|
{score_id, <<"fraud">>}
|
2020-10-26 14:08:29 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{prometheus, [
|
|
|
|
{collectors, [default]}
|
2018-06-13 13:43:48 +00:00
|
|
|
]}
|
|
|
|
].
|