forked from mojaloop/sdk-scheme-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
156 lines (121 loc) · 6.13 KB
/
.env.example
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# 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
# Port number that the test HTTP server will listen on
TEST_LISTEN_PORT=4002
# 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
TEST_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=true
# applicable only if VALIDATE_INBOUND_JWS is "true"
# allows disabling of validation on incoming PUT /parties/{idType}/{idValue} requests
VALIDATE_INBOUND_PUT_PARTIES_JWS=true
# 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=/jwsSigningKey.key
JWS_VERIFICATION_KEYS_DIRECTORY=/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
TEST_CA_CERT_PATH=./secrets/cacert.pem
TEST_CLIENT_CERT_PATH=./secrets/servercert.pem
TEST_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=172.17.0.2
CACHE_PORT=6379
# SWITCH ENDPOINT
# The option 'PEER_ENDPOINT' has no effect if the remaining options 'ALS_ENDPOINT', 'QUOTES_ENDPOINT',
# 'BULK_QUOTES_ENDPOINT', 'TRANSFERS_ENDPOINT', 'BULK_TRANSFERS_ENDPOINT', 'TRANSACTION_REQUESTS_ENDPOINT' are specified.
PEER_ENDPOINT=172.17.0.3:4000
#ALS_ENDPOINT=account-lookup-service.local
#QUOTES_ENDPOINT=quoting-service.local
#BULK_QUOTES_ENDPOINT=quoting-service.local
#TRANSFERS_ENDPOINT=ml-api-adapter.local
#BULK_TRANSFERS_ENDPOINT=bulk-api-adapter.local
#TRANSACTION_REQUESTS_ENDPOINT=transaction-requests-service.local
# BACKEND ENDPOINT
BACKEND_ENDPOINT=172.17.0.5:4000
# FSPID of this DFSP
DFSP_ID=mojaloop-sdk
# 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=false
# 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=false
# this flag is for testing purpose only. sdk-scheme-adapter is not supposed to receive PUT /participants/{Type}/{ID},
# but for testing we can enable it by setting this flag to true
AUTO_ACCEPT_PARTICIPANTS_PUT=false
# 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.
# If using the sdk-scheme-adapter in place of the deprecated `mojaloop-connector`
# make sure this is false. Scenarios that use `mojaloop-connector`
# absolutely requires a previous quote before allowing a transfer to proceed.
ALLOW_TRANSFER_WITHOUT_QUOTE=false
# To enable request for notification on fulfiled transfer
RESERVE_NOTIFICATION=true
# resources API versions should be string in format: "resourceOneName=1.0,resourceTwoName=1.1"
RESOURCE_VERSIONS="transfers=1.1,participants=1.1"
# Management API websocket connection settings.
# The Management API uses this for exchanging connector management messages.
MGMT_API_WS_URL=127.0.0.1
MGMT_API_WS_PORT=4005
# Set to true to enable the use of PM4ML-related services e.g MCM, Management API service
# when running the scheme-adapter as a mojaloop connector component within Payment Manager for Mojaloop.
PM4ML_ENABLED=false