-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathscheme-adapter.env
124 lines (95 loc) · 4.7 KB
/
scheme-adapter.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#### Scheme adapter configuration options ####
# Port number that the inbound (Mojaloop API) HTTP server will listen on
INBOUND_LISTEN_PORT=4000
# Port number that the outbound (simplified DFSP outbound API) HTTP server will listen on
OUTBOUND_LISTEN_PORT=4001
# Enable mutual TLS authentication. Useful when not running in a secure
# environment, i.e. when you're running it locally against your own implementation.
INBOUND_MUTUAL_TLS_ENABLED=false
OUTBOUND_MUTUAL_TLS_ENABLED=false
# Enable verification or incoming JWS signatures
# Note that signatures will be required on incoming messages
# and will be validated against a public key.
VALIDATE_INBOUND_JWS=false
# applicable only if VALIDATE_INBOUND_JWS is "true"
# allows disabling of validation on incoming PUT /parties/{idType}/{idValue} requests
VALIDATE_INBOUND_PUT_PARTIES_JWS=false
# Enable signing of outgoing requests
JWS_SIGN=true
# applicable only if JWS_SIGN is "true"
# allows disabling of signing on outgoing PUT /parties/{idType}/{idValue} requests
JWS_SIGN_PUT_PARTIES=true
# Path to JWS signing key (private key of THIS DFSP)
JWS_SIGNING_KEY_PATH=secrets/jwsSigningKey.key
JWS_VERIFICATION_KEYS_DIRECTORY=secrets/jwsVerificationKeys
# Location of certs and key required for TLS
# IN_CA_CERT_PATH=./secrets/cacert.pem
# IN_SERVER_CERT_PATH=./secrets/servercert.pem
# IN_SERVER_KEY_PATH=./secrets/serverkey.pem
# OUT_CA_CERT_PATH=./secrets/cacert.pem
# OUT_CLIENT_CERT_PATH=./secrets/servercert.pem
# OUT_CLIENT_KEY_PATH=./secrets/serverkey.pem
# The number of space characters by which to indent pretty-printed logs. If set to zero, log events
# will each be printed on a single line.
LOG_INDENT=0
# REDIS cache connection
CACHE_HOST=redis
CACHE_PORT=6379
# SWITCH ENDPOINT
# The option 'PEER_ENDPOINT' has no effect if the remaining three options 'ALS_ENDPOINT', 'QUOTES_ENDPOINT', 'TRANSFERS_ENDPOINT' are specified.
PEER_ENDPOINT=sa_sim2:4000
#ALS_ENDPOINT=account-lookup-service.local
#QUOTES_ENDPOINT=quoting-service.local
#TRANSFERS_ENDPOINT=ml-api-adapter.local
# Simulator backend container endpoint
BACKEND_ENDPOINT=sim:3000
# FSPID of this DFSP
DFSP_ID=payeefsp
# Secret used for generation and verification of secure ILP
ILP_SECRET=Quaixohyaesahju3thivuiChai5cahng
# expiry period in seconds for quote and transfers issued by the SDK
EXPIRY_SECONDS=60
# if set to false the SDK will not automatically accept all returned quotes
# but will halt the transfer after a quote response is received. A further
# confirmation call will be required to complete the final transfer stage.
AUTO_ACCEPT_QUOTES=true
# if set to false the SDK will not automatically accept a resolved party
# but will halt the transer after a party lookup response is received. A further
# cnofirmation call will be required to progress the transfer to quotes state.
AUTO_ACCEPT_PARTY=true
# when set to true, when sending money via the outbound API, the SDK will use the value
# of FSPIOP-Source header from the received quote response as the payeeFsp value in the
# transfer prepare request body instead of the value received in the payee party lookup.
# This behaviour should be enabled when the SDK user DFSP is in a forex enabled switch
# ecosystem and expects quotes and transfers to be rerouted by the switch to forex
# entities i.e. forex providing DFSPs. Please see the SDK documentation and switch
# operator documentation for more information on forex use cases.
USE_QUOTE_SOURCE_FSP_AS_TRANSFER_PAYEE_FSP=false
# set to true to validate ILP, otherwise false to ignore ILP
CHECK_ILP=true
# set to true to enable test features such as request cacheing and retrieval endpoints
ENABLE_TEST_FEATURES=false
# set to true to mock WSO2 oauth2 token endpoint
ENABLE_OAUTH_TOKEN_ENDPOINT=false
OAUTH_TOKEN_ENDPOINT_CLIENT_KEY=test-client-key
OAUTH_TOKEN_ENDPOINT_CLIENT_SECRET=test-client-secret
OAUTH_TOKEN_ENDPOINT_LISTEN_PORT=6000
# WSO2 Bearer Token specific to golden-fsp instance and environment
WSO2_BEARER_TOKEN=7718fa9b-be13-3fe7-87f0-a12cf1628168
# OAuth2 data used to obtain WSO2 bearer token
OAUTH_TOKEN_ENDPOINT=
OAUTH_CLIENT_KEY=
OAUTH_CLIENT_SECRET=
OAUTH_REFRESH_SECONDS=3600
# Set to true to respect expirity timestamps
REJECT_EXPIRED_QUOTE_RESPONSES=false
REJECT_TRANSFERS_ON_EXPIRED_QUOTES=false
REJECT_EXPIRED_TRANSFER_FULFILS=false
# Timeout for GET/POST/DELETE - PUT flow processing
REQUEST_PROCESSING_TIMEOUT_SECONDS=30
# Common Account Lookup System (ALS)
# ALS_ENDPOINT=127.0.0.1:6500
# To allow transfer without a previous quote request, set this value to true.
# The incoming transfer request should consists of an ILP packet and a matching condition in this case.
# The fulfilment will be generated from the provided ILP packet, and must hash to the provided condition.
ALLOW_TRANSFER_WITHOUT_QUOTE=false