-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.env.defaults
97 lines (87 loc) · 2.93 KB
/
.env.defaults
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
# test, prod
ENV=prod
WARP_GW_URL='https://gw.warp.cc'
# PG config
PG_HOST='localhost'
PG_DATABASE='postgres'
PG_USER_WARP='warp'
PG_USER_WARP_PASSWORD='warp_password'
PG_USER_DRE='dre'
PG_USER_DRE_PASSWORD='dre_password'
PG_PORT=21726
PG_SSL='false'
PG_MIN_CONTRACT_ENTRIES=100
PG_MAX_CONTRACT_ENTRIES=1000
FIRST_INTERACTION_TIMESTAMP=1592991945000
REDIS_PUBLISH_STATE=false
APPSYNC_PUBLISH_STATE=false
# required only if APPSYNC_PUBLISH_STATE=true
APPSYNC_KEY=''
APPSYNC_STREAM=''
NODE_JWK_KEY=''
UPDATE_MODE='poll'
# 1h (60 * 60s), 1m (60s), 2s
SYNC_WINDOW_SECONDS='[3600,60,2]'
POLL_RESPONSE_LENGTH_LIMIT=500
POLL_INTERACTIONS_URL='http://api-dre-sync.warp.cc/v1/ro/interactions'
# Spawns a separate node process to evaluate a partition of interactions
POLL_FORK_PROCESS=false
## Warp GW Redis connection, required only if PUBSUB_TYPE=redis
# required only if the PUBSUB_TYPE=redis #
GW_PORT=6379
GW_HOST=dre-redis-read.warp.cc
GW_USERNAME=contracts
GW_PASSWORD=''
GW_TLS=true
GW_ENABLE_OFFLINE_QUEUE=true
GW_LAZY_CONNECT=true
GW_TLS_CA_CERT="-----BEGIN CERTIFICATE-----
MIIDETCCAfmgAwIBAgIQGtQFDAhfVt7WahjerUprvDANBgkqhkiG9w0BAQsFADAT
MREwDwYDV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XINTERACTIONEVALUATIONTIMESECONDS=10
EVALUATION_ALLOWBIGINT=true
EVALUATION_UNSAFECLIENT=skip
EVALUATION_INTERNALWRITES=true
EVALUATION_WHITELIST_SOURCES='[]'
EVALUATION_BLACKLISTED_CONTRACTS='[]'
### Bull MQ redis connection ###
BULLMQ_PORT=6379
BULLMQ_HOST=
BULLMQ_USERNAME=
BULLMQ_PASSWORD=
BULLMQ_TLS=
BULLMQ_ENABLE_OFFLINE_QUEUE=true
BULLMQ_LAZY_CONNECT=true
### Available functionality
FUNC_VIEW_STATE=true
PROCESS_CONTRACT_EVENTS=false
### Workers ###
WORKERS_REGISTER=1
WORKERS_UPDATE=1
# By default maintenance is turned off
WORKERS_MAINTENANCE=0
# Every 5 minutes (value is in ms)
WORKERS_MAINTENANCE_WINDOW=300000
WORKERS_POST_EVAL=1
WORKERS_JOB_ID_REFRESH_SECONDS=2
WORKERS_MAX_FAILURES=3
WORKERS_MAX_STATESIZE=30000000