forked from ice-blockchain/husky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.yaml
221 lines (220 loc) · 5.86 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
# SPDX-License-Identifier: ice License 1.0
development: true
logger:
encoder: console
level: info
cmd/husky:
host: localhost:4443
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 4443
certPath: cmd/husky/.testdata/localhost.crt
keyPath: cmd/husky/.testdata/localhost.key
wintr/auth/ice:
jwtSecret: bogus
cmd/husky-pack:
host: localhost:5443
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 5443
certPath: cmd/husky-pack/.testdata/localhost.crt
keyPath: cmd/husky-pack/.testdata/localhost.key
wintr/auth/ice:
jwtSecret: bogus
news: &news
db: &newsDatabase
urls:
- localhost:3501
user: admin
password: pass
wintr/connectors/storage/v2:
runDDL: true
primaryURL: postgresql://root:pass@localhost:5434/husky
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5434/husky
messageBroker: &newsMessageBroker
consumerGroup: husky-local-news-testing
createTopics: true
urls:
- localhost:9092
topics: &newsTopics
- name: husky-news-health-check
partitions: 1
replicationFactor: 1
retention: 1000h
- name: news-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: viewed-news
partitions: 10
replicationFactor: 1
retention: 1000h
wintr/multimedia/picture:
urlUpload: https://storage.bunnycdn.com/ice-staging/news
urlDownload: https://ice-staging.b-cdn.net/news
analytics: &analytics
wintr/analytics/tracking:
baseUrl: https://api-02.moengage.com
db: &analyticsDatabase
urls:
- localhost:3501
user: admin
password: pass
wintr/connectors/storage/v2:
runDDL: true
primaryURL: postgresql://root:pass@localhost:5434/husky
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5434/husky
messageBroker: &analyticsMessageBroker
consumerGroup: husky-local-analytics-testing
createTopics: true
urls:
- localhost:9092
topics: &analyticsTopics
- name: analytics-set-attributes
partitions: 10
replicationFactor: 1
retention: 1000h
- name: analytics-track-action
partitions: 10
replicationFactor: 1
retention: 1000h
consumingTopics:
- name: analytics-set-attributes
oneGoroutinePerPartition: true
- name: analytics-track-action
oneGoroutinePerPartition: true
notifications: ¬ifications
deeplinkScheme: staging.ice.app
pingCooldown: 1m
disabledAchievementsNotifications:
levels:
- l6
badges:
- s1
- c1
- l1
maxNotificationDelaySec: 60
minNotificationDelaySec: 10
notificationDelaysByTopic:
news_en_v2:
maxNotificationDelaySec: 60
minNotificationDelaySec: 20
wintr/multimedia/picture:
urlDownload: https://ice-staging.b-cdn.net
db: ¬ificationsDatabase
urls:
- localhost:3501
user: admin
password: pass
wintr/connectors/storage/v2:
runDDL: true
primaryURL: postgresql://root:pass@localhost:5434/husky
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5434/husky
messageBroker: ¬ificationsMessageBroker
consumerGroup: husky-local-notifications-testing
createTopics: true
urls:
- localhost:9092
topics: ¬ificationsMessageBrokerTopics
- name: husky-notifications-health-check
partitions: 1
replicationFactor: 1
retention: 1000h
- name: user-pings
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: users-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: user-device-metadata-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: adoption-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: news-table
partitions: 10
replicationFactor: 1
retention: 1000h
- name: available-daily-bonuses
partitions: 10
replicationFactor: 1
retention: 1000h
- name: started-days-off
partitions: 10
replicationFactor: 1
retention: 1000h
- name: achieved-badges
partitions: 10
replicationFactor: 1
retention: 1000h
- name: completed-levels
partitions: 10
replicationFactor: 1
retention: 1000h
- name: enabled-roles
partitions: 10
replicationFactor: 1
retention: 1000h
- name: contacts-table
partitions: 10
replicationFactor: 1
retention: 1000h
consumingTopics:
- name: users-table
- name: user-device-metadata-table
- name: adoption-table
- name: news-table
- name: available-daily-bonuses
- name: user-pings
- name: started-days-off
- name: achieved-badges
- name: completed-levels
- name: enabled-roles
- name: contacts-table
producingTopics:
- name: analytics-set-attributes
- name: analytics-track-action
notifications_test:
<<: *notifications
messageBroker:
<<: *notificationsMessageBroker
consumingTopics: *notificationsMessageBrokerTopics
consumerGroup: husky-local-notifications-test
db:
<<: *notificationsDatabase
news_test:
<<: *news
messageBroker:
<<: *newsMessageBroker
consumingTopics: *newsTopics
consumerGroup: husky-local-news-test
db:
<<: *newsDatabase
analytics_test:
<<: *analytics
messageBroker:
<<: *analyticsMessageBroker
consumingTopics: *analyticsTopics
consumerGroup: husky-local-analytics-test
db:
<<: *analyticsDatabase