2018-06-13 13:43:48 +00:00
|
|
|
[
|
2019-06-27 15:58:45 +00:00
|
|
|
{kernel, [
|
2023-08-02 15:25:02 +00:00
|
|
|
{logger_level, info},
|
2019-06-27 15:58:45 +00:00
|
|
|
{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, [
|
2022-03-02 08:20:07 +00:00
|
|
|
% milliseconds
|
|
|
|
{cache_update_interval, 5000},
|
2018-07-05 10:57:59 +00:00
|
|
|
{max_cache_size, #{
|
2020-01-27 13:40:48 +00:00
|
|
|
elements => 20,
|
2022-03-02 08:20:07 +00:00
|
|
|
% 50Mb
|
|
|
|
memory => 52428800
|
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, #{
|
2022-03-02 08:20:07 +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, #{
|
ED-131: flexible dicts (#394)
* payment_system marshal/unmarshal in ff_codec
* payment_system in ff_resource/ff_withdrawal
* implement payment_system, part 1
* bump damsel (+ BinData)
* fix dialyzer
* implement payment_system, part2 (not work version, only for save)
* implement payment_system, part3
* fix compilation error
* fix dialyzer
* fix payment_system_deprecated decoding/error-return issue
* fix ff_bin_data typing, fix useless code in ff_codec
* fix varset issue in withdrawal
* fix create_resource issue
* fix review issues with marshalling/unmarshalling and PaymentInstitution/PaymentSystemSelector typing
* implement payment_system additional rework
* fix complete_resource cases issue
* rework create_resource func, part1, save varesion, not working
* rework types in ff_resource
* rework withdrawals/resource do-unwraps, fix errors
* fix payment_system optionality in withdrawal adapter marshalling
* fix review issues (more compact and proper resource_create)
* fix ff_routing_rule RoutingRuleTag optionality issue
* add party-management image to test env, cbange party management calls from hellgate to party-management
* fix issue with wrong BankCard field "iso_country_code" which right name is "issuer_country"
* fix payment_system eunit issue in withdrawal session machinery schema
* add payment system to ct
* docker-compose party-management image update
* try to fix issuer_country issue
* iso_country_code/issuer_country issue fixed.
* add dummy payment system selector to payment institution #2
* fix dialyzer
* nano
* nano
* nano
* remove hellgate
* nano
* refactoring
* add BinDataCondition to payment_system selector in ct
2021-09-03 09:44:34 +00:00
|
|
|
party_management => "http://party_management:8022/v1/processing/partymgmt"
|
2019-10-07 08:45:00 +00:00
|
|
|
}},
|
|
|
|
{woody, #{
|
2022-03-02 08:20:07 +00:00
|
|
|
% disabled | safe | aggressive
|
|
|
|
cache_mode => safe,
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
2022-05-23 10:58:46 +00:00
|
|
|
{bender_client, [
|
|
|
|
{services, #{
|
|
|
|
'Bender' => <<"http://bender:8022/v1/bender">>,
|
|
|
|
'Generator' => <<"http://bender:8022/v1/generator">>
|
|
|
|
}},
|
|
|
|
{deadline, 60000}
|
|
|
|
%{retries, #{
|
|
|
|
% 'GenerateID' => finish,
|
|
|
|
% 'GetInternalID' => finish,
|
|
|
|
% '_' => finish
|
|
|
|
%}}
|
|
|
|
]},
|
|
|
|
|
2018-06-13 13:43:48 +00:00
|
|
|
{fistful, [
|
2021-11-26 07:34:34 +00:00
|
|
|
{provider, #{
|
2018-06-13 13:43:48 +00:00
|
|
|
<<"ncoeps">> => #{
|
|
|
|
payment_institution_id => 100,
|
2021-11-26 07:34:34 +00:00
|
|
|
contract_template_id => 10000,
|
|
|
|
contractor_level => full
|
|
|
|
},
|
|
|
|
<<"test">> => #{
|
|
|
|
payment_institution_id => 1,
|
|
|
|
contract_template_id => 1,
|
|
|
|
contractor_level => full
|
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
|
|
|
'automaton' => "http://machinegun:8022/v1/automaton",
|
2022-08-04 09:18:02 +00:00
|
|
|
'accounter' => "http://shumway:8022/accounter",
|
2024-06-25 10:00:40 +00:00
|
|
|
'limiter' => "http://limiter:8022/v1/limiter",
|
|
|
|
'validator' => "http://validator:8022/v1/validator_personal_data"
|
2018-07-06 13:49:30 +00:00
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
2018-10-05 11:19:46 +00:00
|
|
|
{ff_transfer, [
|
2022-03-02 08:20:07 +00:00
|
|
|
%% 4h
|
|
|
|
{max_session_poll_timeout, 14400},
|
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
|
|
|
]},
|
|
|
|
|
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, #{
|
2022-03-02 08:20:07 +00:00
|
|
|
disk => {erl_health, disk, ["/", 99]},
|
|
|
|
memory => {erl_health, cg_memory, [99]},
|
|
|
|
service => {erl_health, service, [<<"fistful-server">>]}
|
2018-11-02 11:21:59 +00:00
|
|
|
}}
|
2019-11-15 13:13:20 +00:00
|
|
|
]},
|
2020-06-08 14:14:00 +00:00
|
|
|
|
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-10-26 14:08:29 +00:00
|
|
|
{prometheus, [
|
|
|
|
{collectors, [default]}
|
2024-08-29 08:43:18 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{hackney, [
|
|
|
|
{mod_metrics, woody_hackney_prometheus}
|
2018-06-13 13:43:48 +00:00
|
|
|
]}
|
|
|
|
].
|