-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv-example
250 lines (180 loc) · 8.77 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
##
## ________ ________ _____ _____ __
## / _/ __ \/ ____/ / / / | / _/ | / /
## / // / / / / / /_/ / /| | / // |/ /
## _/ // /_/ / /___/ __ / ___ |_/ // /| /
## /___/_____/\____/_/ /_/_/ |_/___/_/ |_/
##
##
## Please copy this file into a new file with name .env,
## and adjust the following variables to match your environment
## ↓↓↓↓
## ------------------------------------------------------------------------------------
## Pool IP
## Will be used to generate pool transaction genesis file
## If there is a need to make it reachable from the outside,
## please make sure it matches the PUBLIC IP of the machine
##
## If running in the Cloud, please run the script display-cloud-info.sh
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_POOL_IP=172.16.0.200
IDC_POOL_NAME=sandbox
## ------------------------------------------------------------------------------------
## Genesis Transaction Genesis File Path & Static Info Port (test-pool only)
##
## Will be used by the IEA API to connect with the ledger
## If there is no file, will try to request the pool transaction genesis file
## using the static info port
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_GENESIS_TXN=./pool_transactions_genesis
IDC_POOL_INFO_PORT=8001
## ------------------------------------------------------------------------------------
## API Host & Port
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_HOST=172.16.0.100
IDC_API_PORT=8000
## ------------------------------------------------------------------------------------
## API Domain Details
##
## Protocol, host & port (Reachable by other agents)
## These values will be shared in the connection offer messages
## sent to connect with other agents
##
## Wallet Id, Key, and Seed
## These values are used to create and/or open a wallet
## for use by the domain endpoint / routing agent
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_DOMAIN_PROTOCOL=http
IDC_API_DOMAIN_HOST=172.16.0.100
IDC_API_DOMAIN_PORT=8000
API_WALLET_ID=api-wallet
API_WALLET_KEY=api-wallet-key
API_WALLET_SEED=
## ------------------------------------------------------------------------------------
## JSON Web Token Secret
##
## IMPORTANT!! Change it for any non dev/test environment
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_JWT_SECRET=your_jwt_secret
## ------------------------------------------------------------------------------------
## IEA API Logger level
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_LOG_LEVEL=debug
## ------------------------------------------------------------------------------------
## IEA API Websocket Liveness Check Interval
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_WS_PING_INTERVAL=30000
## ------------------------------------------------------------------------------------
## RUST logger level (low-level rust indy-sdk/libindy)
## ↓↓↓↓-------------------------------------------------------------------------------
RUST_LOG=debug
## ------------------------------------------------------------------------------------
## IEA API Database Connection Parameters
## ↓↓↓↓-------------------------------------------------------------------------------
# host and port at which the database is reachable
IDC_API_DB_HOST=mongodb
IDC_API_DB_PORT=27017
# database user username and password
IDC_API_DB_USER=
IDC_API_DB_PASSWORD=
## ------------------------------------------------------------------------------------
## Schema Compiler & Checker API Connection Parameters
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_SCHEMA_IP=172.16.0.150
IDC_SCHEMA_PORT=9000
## ------------------------------------------------------------------------------------
## Wallet Cache Time To Live (in minutes)
##
## Time to wait before closing a wallet after no request is using it anymore
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_WALLETCACHE_TTL=15
## ------------------------------------------------------------------------------------
## Flag to send all NYM transactions to the ledger (default false)
##
## This flag was used for experimentation purposes only
## by default pairwise dids are only stored locally and not stored on the ledger
## except when a role other than NONE is offered
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_NYM_ALWAYS=false
## ------------------------------------------------------------------------------------
## Bcrypt saltOrRounds configuration
##
## For more info see: https://kikobeats.com/storing-passwords-101/
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_SALTROUNDS=10
## ------------------------------------------------------------------------------------
## Deployment Parameters
##
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_API_SUBNET=172.16.0.0/24
IDC_POOL_PORTS=9701-9708
IDC_PORT_START=9700
## ------------------------------------------------------------------------------------
## Demo Mongo Backend
##
## ↓↓↓↓-------------------------------------------------------------------------------
DEMO_BACKEND_HOST=0.0.0.0
DEMO_BACKEND_PORT=8011
## ------------------------------------------------------------------------------------
## CA Host & Port
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_APP_HOST=127.0.1.1
IDC_CA_APP_PORT=8005
## ------------------------------------------------------------------------------------
## CA Domain Details
##
## SSL (default false), host & port (Reachable by other agents)
## These values will be shared in the connection offer messages
## sent to connect with other agents
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_SSL=http
IDC_CA_DOMAIN_HOST=127.0.1.1
IDC_CA_DOMAIN_PORT=8005
## ------------------------------------------------------------------------------------
## Wallet Name, Cloud Agent DID Seed and Secret
##
## IMPORTANT!! Change it for any non dev/test environment
## ↓↓↓↓-------------------------------------------------------------------------------
###
IDC_CA_WALLET_NAME='idc-ca-wallet'
IDC_CA_SEED='0000000000000000000000CloudAgent'
IDC_CA_SECRET='my-secret'
## ------------------------------------------------------------------------------------
## Firebase Credentials
##
## See firebase official documentation to register your account and get ADMIN SDK json file
## And project URL. The Host location path will be mounted into the container use it to load
## the secret AdminSDK json file.
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_FIREBASE_ADMIN_SDK_FILE_HOST_PATH=./ca-config
IDC_CA_FIREBASE_PROJECT_URL='https://dims.firebaseio.com'
## ------------------------------------------------------------------------------------
## CA Log Level & Rust (for libindy)
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_LOG_LEVEL=debug
## ------------------------------------------------------------------------------------
## CA Database Parameters
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_DB_PATH='./data'
## ------------------------------------------------------------------------------------
## Genesis Transaction Genesis File Path & Static Info Port (test-pool only)
##
## Will be used by the Cloud Agent to connect with the ledger
## If there is no file, will try to request the pool transaction genesis file
## using the static info port
## ↓↓↓↓-------------------------------------------------------------------------------
IDC_CA_GENESIS_TXN=./pool_transactions_genesis
## ------------------------------------------------------------------------------------
## DEMO_MONGO_URL
##
## Will be used by the Issuer App to connect with the Demo Mongo Backend
## ↓↓↓↓-------------------------------------------------------------------------------
#
DIMS_DEMO_MONGO_URL=
## ------------------------------------------------------------------------------------
## DIMS_OIDC_PROVIDER_CONFIG_PATH
##
## Path the oidc-provider (openid-ssi-login) will look for config.json
## ↓↓↓↓-------------------------------------------------------------------------------
#
DIMS_OIDC_PROVIDER_CONFIG_PATH=./example-config.json