-
Notifications
You must be signed in to change notification settings - Fork 10
/
application.yaml
236 lines (235 loc) · 6.81 KB
/
application.yaml
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
# SPDX-License-Identifier: ice License 1.0
development: true
logger:
encoder: console
level: info
cmd/eskimo:
host: localhost
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 443
certPath: cmd/eskimo/.testdata/localhost.crt
keyPath: cmd/eskimo/.testdata/localhost.key
wintr/auth/ice:
refreshExpirationTime: 24h
accessExpirationTime: 1h
jwtSecret: bogus
cmd/eskimo-hut:
api-key: bogus-secret
host: localhost:1443
version: local
defaultEndpointTimeout: 120s
third-party-api-key: bogus
#tenant: sunwaves
httpServer:
port: 1443
certPath: cmd/eskimo-hut/.testdata/localhost.crt
keyPath: cmd/eskimo-hut/.testdata/localhost.key
wintr/auth/ice:
refreshExpirationTime: 24h
accessExpirationTime: 1h
jwtSecret: bogus
wintr/connectors/storage/v2: &db
runDDL: true
primaryURL: postgresql://root:pass@localhost:5433/eskimo
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5433/eskimo
kyc/social:
welcomeBonusV2Amount: 500
config-json-url: https://somewhere.com/something/somebogus.json
environment: local
enable-alerts: false
alert-slack-webhook: https://hooks.slack.com/services/dummy/dummy/dummy
delay-between-sessions: 3m
session-window: 2m
max-sessions-allowed: 4
max-attempts-allowed: 3
wintr/connectors/storage/v2: *db
web-scraping-api:
base-url: https://scrape.shifter.io/
api-key-v1: bogus
api-key-v2: bogus
countries:
- MX
- CA
- US
social-links:
twitter:
domains:
- twitter.com
- x.com
- t.co
facebook:
allow-long-live-tokens: true
tenant-name: sunwaves
referralInviteUrlPrefix: https://bogus.com/@
kyc/face:
config-json-url: https://somewhere.com/something/somebogus.json
threeDiVi:
bafToken: bogus
bafHost: http://bogus.com/
availabilityUrl:
secretApiToken: bogus-secret
concurrentUsers: 1
kyc/linking:
tenant: sunwaves
wintr/connectors/storage/v2:
runDDL: true
primaryURL: postgresql://root:pass@localhost:5438/eskimo-global?pool_max_conn_idle_time=1000ms&pool_health_check_period=500ms&pool_max_conns=40
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5438/eskimo-global?pool_max_conn_idle_time=1000ms&pool_health_check_period=500ms&pool_max_conns=20
# If urls does not match <cmd/*->hostname>/$tenant/ schema.
#tenantURLs:
# callfluent: https://localhost:1444/
# doctorx: https://localhost:1445/
kyc/coinDistributionEligibility:
tenant: sunwaves
config-json-url1: https://somewhere.com/something/somebogus.json
# Comment if don't need in mandarody scenarios.
mandatoryScenarios:
- join_twitter
- join_telegram
- join_cmc
- signup_callfluent
- signup_doctorx
- signup_sunwaves
- signup_sealsend
- signup_sauces
- signup_cryptomayors
# tenantURLs:
# callfluent: https://localhost:7443/
# doctorx: https://localhost:7444/
kyc/quiz:
environment: local
enable-alerts: false
alert-slack-webhook: https://hooks.slack.com/services/dummy/dummy/dummy
wintr/connectors/storage/v2: *db
maxSessionDurationSeconds: 600
maxQuestionsPerSession: 3
maxWrongAnswersPerSession: 1
sessionCoolDownSeconds: 3600
maxResetCount: 0
maxAttemptsAllowed: 3
availabilityWindowSeconds: 600
globalStartDate: '2024-02-03T16:20:52.156534Z'
auth/telegram:
wintr/connectors/storage/v2: *db
telegramTokenExpiration: 1h
telegramBots:
1:
botToken: bogus
auth/email-link:
extraLoadBalancersCount: 2
wintr/connectors/storage/v2: *db
wintr/connectors/storage/v3:
url: redis://default:@localhost:6379/
fromEmailAddress: no-reply@ice.io
fromEmailName: ice
emailValidation:
authLink: https://some.webpage.example/somePath
expirationTime: 1h
blockDuration: 10m
sameIpRateCheckPeriod: 1h
maxRequestsFromIP: 10
loginSession:
jwtSecret: bogus
confirmationCode:
maxWrongAttemptsCount: 3
constCodes:
bogus@example.com: 111
petName: Tenanter
appName: Tenant
teamName: Tenant
auth/email-link/1:
fromEmailAddress: no-reply111@ice.io
fromEmailName: ice111
wintr/email:
credentials:
#apiKey: bogus1
auth/email-link/2:
fromEmailAddress: no-reply222@ice.io
fromEmailName: ice222
wintr/email:
credentials:
#apiKey: bogus2
users: &users
maxReferralsCount: 200
defaultReferralName: bogus
adoptionUrl: https://localhost:3443/v1r/tokenomics-statistics/adoption
kyc:
kyc-step1-reset-url: https://localhost:443/v1w/face-auth/
disableConsumer: false
intervalBetweenRepeatableKYCSteps: 1m
wintr/connectors/storage/v2: *db
messageBroker: &usersMessageBroker
consumerGroup: eskimo-local
createTopics: true
urls:
- localhost:9092
topics: &usersMessageBrokerTopics
- name: eskimo-health-check
partitions: 1
replicationFactor: 1
retention: 1000h
- name: users-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: user-device-metadata-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: global-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: contacts-table
partitions: 10
replicationFactor: 1
retention: 1000h
### The next topics are not owned by this service, but are needed to be created for the local/test environment.
- name: mining-sessions-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: user-pings
partitions: 10
replicationFactor: 1
retention: 1000h
consumingTopics:
- name: users-table
- name: mining-sessions-table
- name: user-pings
ip2LocationBinaryPath: ./users/internal/device/metadata/.testdata/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-SAMPLE.BIN
requiredAppVersion:
android: v0.0.1
wintr/multimedia/picture:
urlUpload: https://storage.bunnycdn.com/ice-staging/profile
urlDownload: https://ice-staging.b-cdn.net/profile
phoneNumberValidation:
expirationTime: 3m
smsTemplate: '{{.code}} is your ice verification code. This code expires in {{.expirationTime}} minutes.'
emailValidation:
emailSubject: ICE email verification
emailBodyHTMLTemplate: |
<strong>{{.code}}<strong> is your ice verification code. This code expires in <strong>{{.expirationTime}}<strong> minutes.
fromEmailAddress: no-reply@ice.io
fromEmailName: ice
expirationTime: 3m
globalAggregationInterval:
parent: 60m
child: 1m
minMiningSessionDuration: 30s
users_test:
<<: *users
messageBroker:
<<: *usersMessageBroker
consumingTopics: *usersMessageBrokerTopics
consumerGroup: eskimo-local-test