This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
executable file
·395 lines (347 loc) · 10.9 KB
/
.env.sample
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# ======================================== #
# ACTION SERVICE #
# ======================================== #
ACTION_SERVICE_PORT=8080
ACTION_SERVICE_RETRY_ATTEMPTS=10
ACTION_SERVICE_RETRY_DELAY=1s
ACTION_SERVICE_URL=redis://redis:6379
# ======================================== #
# ALBUM SERVICE #
# ======================================== #
ALBUM_ELASTICSEARCH_NODE=http://elasticsearch:9200
ALBUM_IMAGE_PATH=/cover/${id}
ALBUM_IMAGE_PATH_DEFAULT=/cover/album.jpg
ALBUM_INDEX_NAME=data
ALBUM_MAX_SIZE=100
ALBUM_SERVICE_PORT=8080
ALBUM_SERVICE_RETRY_ATTEMPTS=10
ALBUM_SERVICE_RETRY_DELAY=1s
ALBUM_SERVICE_URL=redis://redis:6379
ARTIST_SERVICE_URL=redis://redis:6379
CONST_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
# ======================================== #
# ARTIST SERVICE #
# ======================================== #
ARTIST_ELASTICSEARCH_NODE=http://elasticsearch:9200
ARTIST_IMAGE_PATH=/cover/${id}
ARTIST_IMAGE_PATH_DEFAULT=/cover/artist.jpg
ARTIST_INDEX_NAME=data
ARTIST_MAX_SIZE=100
ARTIST_SERVICE_PORT=8080
ARTIST_SERVICE_RETRY_ATTEMPTS=10
ARTIST_SERVICE_RETRY_DELAY=1s
ARTIST_SERVICE_URL=redis://redis:6379
CONST_SERVICE_URL=redis://redis:6379
RELATION_SERVICE_URL=redis://redis:6379
# ======================================== #
# AT SERVICE #
# ======================================== #
AT_SERVICE_PORT=8080
AT_SERVICE_RETRY_ATTEMPTS=10
AT_SERVICE_RETRY_DELAY=1s
AT_SERVICE_URL=redis://redis:6379
AT_TYPEORM_DATABASE=meloapp
AT_TYPEORM_HOST=mysql
AT_TYPEORM_LOGGING=all
AT_TYPEORM_PASSWORD=testpassword
AT_TYPEORM_PORT=3306
AT_TYPEORM_SYNCHRONIZE=false
AT_TYPEORM_USERNAME=root
# ======================================== #
# CONST SERVICE #
# ======================================== #
CONST_IMAGE_BASE_URL=https://img.melobit.com/
CONST_IMAGE_ENCODE=true
CONST_IMAGE_KEY=
CONST_IMAGE_SALT=
CONST_IMAGE_SIGNATURE_SIZE=32
CONST_IMAGE_TYPE_SIZE=[{"height":1024,"name":"cover","width":1024},{"height":512,"name":"cover_small","width":512},{"height":300,"name":"slider","width":800},{"height":300,"name":"thumbnail","width":300},{"height":150,"name":"thumbnail_small","width":150}]
CONST_SERVICE_PORT=8080
CONST_SERVICE_RETRY_ATTEMPTS=10
CONST_SERVICE_RETRY_DELAY=1s
CONST_SERVICE_URL=redis://redis:6379
CONST_STATIC_IMAGE_PATHS={"pop":"asset/pop.jpg","rap":"asset/rap.jpg"}
# ======================================== #
# DOWNLOAD SERVICE #
# ======================================== #
DOWNLOAD_ELASTICSEARCH_NODE=http://elasticsearch:9200
DOWNLOAD_INDEX_NAME=songs
DOWNLOAD_MAX_SIZE=100
DOWNLOAD_SERVICE_PORT=8080
DOWNLOAD_SERVICE_RETRY_ATTEMPTS=10
DOWNLOAD_SERVICE_RETRY_DELAY=1s
DOWNLOAD_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
# ======================================== #
# EMOTION SERVICE #
# ======================================== #
EMOTION_ELASTICSEARCH_NODE=http://elasticsearch:9200
EMOTION_INDEX_NAME=songs
EMOTION_MAX_SIZE=100
EMOTION_SERVICE_PORT=8080
EMOTION_SERVICE_RETRY_ATTEMPTS=10
EMOTION_SERVICE_RETRY_DELAY=1s
EMOTION_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
# ======================================== #
# FILE SERVICE #
# ======================================== #
FILE_S3_ACCESS_KEY_ID=minioadmin
FILE_S3_BUCKET=misc
FILE_S3_ENDPOINT=minio:9000
FILE_S3_FORCE_PATH_STYLE=true
FILE_S3_SECRET_ACCESS_KEY=minioadmin
FILE_S3_SSL_ENABLED=false
FILE_SERVICE_PORT=8080
FILE_SERVICE_RETRY_ATTEMPTS=10
FILE_SERVICE_RETRY_DELAY=1s
FILE_SERVICE_URL=redis://redis:6379
FILE_TYPEORM_DATABASE=meloapp
FILE_TYPEORM_HOST=mysql
FILE_TYPEORM_LOGGING=all
FILE_TYPEORM_PASSWORD=testpassword
FILE_TYPEORM_PORT=3306
FILE_TYPEORM_SYNCHRONIZE=false
FILE_TYPEORM_USERNAME=root
# ======================================== #
# JWKS SERVICE #
# ======================================== #
JWKS_SERVICE_PORT=8080
JWKS_SERVICE_RETRY_ATTEMPTS=10
JWKS_SERVICE_RETRY_DELAY=1s
JWKS_SERVICE_URL=redis://redis:6379
JWKS_TYPEORM_DATABASE=meloapp
JWKS_TYPEORM_HOST=mysql
JWKS_TYPEORM_LOGGING=all
JWKS_TYPEORM_PASSWORD=testpassword
JWKS_TYPEORM_PORT=3306
JWKS_TYPEORM_SYNCHRONIZE=false
JWKS_TYPEORM_USERNAME=root
# ======================================== #
# PLAYLIST SERVICE #
# ======================================== #
PLAYLIST_IMAGE_PATH=/cover/${id}
PLAYLIST_IMAGE_PATH_DEFAULT=/cover/playlist.jpg
PLAYLIST_MONGOOSE_RETRY_ATTEMPTS=9
PLAYLIST_MONGOOSE_RETRY_DELAY=3s
PLAYLIST_MONGOOSE_URI=mongodb://mongo:27017/meloapp
PLAYLIST_SERVICE_PORT=8080
PLAYLIST_SERVICE_RETRY_ATTEMPTS=10
PLAYLIST_SERVICE_RETRY_DELAY=1s
PLAYLIST_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
# ======================================== #
# RELATION SERVICE #
# ======================================== #
RELATION_DGRAPH_ADDRESS=dgraph:9080
RELATION_DGRAPH_DEBUG=true
RELATION_SERVICE_PORT=8080
RELATION_SERVICE_RETRY_ATTEMPTS=10
RELATION_SERVICE_RETRY_DELAY=1s
RELATION_SERVICE_URL=redis://redis:6379
# ======================================== #
# RT SERVICE #
# ======================================== #
RT_SERVICE_PORT=8080
RT_SERVICE_RETRY_ATTEMPTS=10
RT_SERVICE_RETRY_DELAY=1s
RT_SERVICE_URL=redis://redis:6379
RT_TYPEORM_DATABASE=meloapp
RT_TYPEORM_HOST=mysql
RT_TYPEORM_LOGGING=all
RT_TYPEORM_PASSWORD=testpassword
RT_TYPEORM_PORT=3306
RT_TYPEORM_SYNCHRONIZE=false
RT_TYPEORM_USERNAME=root
# ======================================== #
# SEARCH SERVICE #
# ======================================== #
ALBUM_SERVICE_URL=redis://redis:6379
ARTIST_SERVICE_URL=redis://redis:6379
SEARCH_ELASTICSEARCH_NODE=http://elasticsearch:9200
SEARCH_INDEX_NAME=music
SEARCH_MAX_SIZE=100
SEARCH_SCRIPT_SCORE=_score * Math.log(100 + Math.sqrt(doc['weight'].value))
SEARCH_SERVICE_PORT=8080
SEARCH_SERVICE_RETRY_ATTEMPTS=10
SEARCH_SERVICE_RETRY_DELAY=1s
SEARCH_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
# ======================================== #
# SONG SERVICE #
# ======================================== #
ALBUM_SERVICE_URL=redis://redis:6379
ARTIST_SERVICE_URL=redis://redis:6379
CONST_SERVICE_URL=redis://redis:6379
RELATION_SERVICE_URL=redis://redis:6379
SONG_ELASTICSEARCH_NODE=http://elasticsearch:9200
SONG_IMAGE_PATH=/cover/${id}
SONG_IMAGE_PATH_DEFAULT=/cover/song.jpg
SONG_MAX_SIZE=100
SONG_SEND_TIMEOUT=5s
SONG_SEND_URL=http://telegram:1000/telegram/api/response
SONG_SERVICE_PORT=8080
SONG_SERVICE_RETRY_ATTEMPTS=10
SONG_SERVICE_RETRY_DELAY=1s
SONG_SERVICE_URL=redis://redis:6379
USER_SERVICE_URL=redis://redis:6379
SONG_INDEX_NAME=songs
SONG_MP3_ENDPOINT=melobit.com/
SONG_SEND_URL=telegram.org/api
SONG_SERVICE_PORT
SONG_TYPEORM_DATABASE
SONG_TYPEORM_HOST
SONG_TYPEORM_LOGGING
SONG_TYPEORM_PASSWORD
SONG_TYPEORM_PORT
SONG_TYPEORM_SYNCHRONIZE
SONG_TYPEORM_USERNAME
# ======================================== #
# TAG SERVICE #
# ======================================== #
TAG_SERVICE_PORT=8080
TAG_SERVICE_RETRY_ATTEMPTS=10
TAG_SERVICE_RETRY_DELAY=1s
TAG_SERVICE_URL=redis://redis:6379
TAG_TYPEORM_DATABASE=meloapp
TAG_TYPEORM_HOST=mysql
TAG_TYPEORM_LOGGING=all
TAG_TYPEORM_PASSWORD=testpassword
TAG_TYPEORM_PORT=3306
TAG_TYPEORM_SYNCHRONIZE=false
TAG_TYPEORM_USERNAME=root
# ======================================== #
# USER SERVICE #
# ======================================== #
USER_SERVICE_PORT=8080
USER_SERVICE_RETRY_ATTEMPTS=10
USER_SERVICE_RETRY_DELAY=1s
USER_SERVICE_URL=redis://redis:6379
USER_TYPEORM_DATABASE=meloapp
USER_TYPEORM_HOST=mysql
USER_TYPEORM_LOGGING=all
USER_TYPEORM_PASSWORD=testpassword
USER_TYPEORM_PORT=3306
USER_TYPEORM_SYNCHRONIZE=false
USER_TYPEORM_USERNAME=root
# ======================================== #
# APP PROXY #
# ======================================== #
# ACTION_CACHE_HOST=
# ACTION_CACHE_MAX=
# ACTION_CACHE_PORT=
# ACTION_CACHE_STORE=
# ACTION_CACHE_TTL=
# ALBUM_CACHE_HOST=
# ALBUM_CACHE_MAX=
# ALBUM_CACHE_PORT=
# ALBUM_CACHE_STORE=
# ALBUM_CACHE_TTL=
# ARTIST_CACHE_HOST=
# ARTIST_CACHE_MAX=
# ARTIST_CACHE_PORT=
# ARTIST_CACHE_STORE=
# ARTIST_CACHE_TTL=
# AT_CACHE_HOST=
# AT_CACHE_MAX=
# AT_CACHE_PORT=
# AT_CACHE_STORE=
# AT_CACHE_TTL=
AUTH_JWT_ACCESS_TOKEN_EXPIRES_COUNT=10
AUTH_JWT_ACCESS_TOKEN_EXPIRES_IN=5m
AUTH_JWT_AUTH_SCHEMA=JWT
AUTH_JWT_REFRESH_TOKEN_EXPIRES_IN=1d
AUTH_TELEGRAM_BOT_TOKEN=000000000:00000000000000000000000000000000000
AUTH_TELEGRAM_QUERY_EXPIRATION=1d
# CONST_CACHE_HOST=
# CONST_CACHE_MAX=
# CONST_CACHE_PORT=
# CONST_CACHE_STORE=
# CONST_CACHE_TTL=
# DOWNLOAD_CACHE_HOST=
# DOWNLOAD_CACHE_MAX=
# DOWNLOAD_CACHE_PORT=
# DOWNLOAD_CACHE_STORE=
# DOWNLOAD_CACHE_TTL=
# EMOTION_CACHE_HOST=
# EMOTION_CACHE_MAX=
# EMOTION_CACHE_PORT=
# EMOTION_CACHE_STORE=
# EMOTION_CACHE_TTL=
# FILE_CACHE_HOST=
# FILE_CACHE_MAX=
# FILE_CACHE_PORT=
# FILE_CACHE_STORE=
# FILE_CACHE_TTL=
# JWKS_CACHE_HOST=
# JWKS_CACHE_MAX=
# JWKS_CACHE_PORT=
# JWKS_CACHE_STORE=
# JWKS_CACHE_TTL=
# PLAYLIST_CACHE_HOST=
# PLAYLIST_CACHE_MAX=
# PLAYLIST_CACHE_PORT=
# PLAYLIST_CACHE_STORE=
# PLAYLIST_CACHE_TTL=
# RT_CACHE_HOST=
# RT_CACHE_MAX=
# RT_CACHE_PORT=
# RT_CACHE_STORE=
# RT_CACHE_TTL=
# SEARCH_CACHE_HOST=
# SEARCH_CACHE_MAX=
# SEARCH_CACHE_PORT=
# SEARCH_CACHE_STORE=
# SEARCH_CACHE_TTL=
# SONG_CACHE_HOST=
# SONG_CACHE_MAX=
# SONG_CACHE_PORT=
# SONG_CACHE_STORE=
# SONG_CACHE_TTL=
# USER_CACHE_HOST=
# USER_CACHE_MAX=
# USER_CACHE_PORT=
# USER_CACHE_STORE=
# USER_CACHE_TTL=
APP_APM_ACTIVE=false
APP_APM_LOG_LEVEL=trace
APP_APM_SECRET_TOKEN=
APP_APM_SERVER_URL=http://apm-server:8200
APP_APM_SERVICE_NAME=melo-api
APP_CACHE_HOST=redis
APP_CACHE_MAX=10
APP_CACHE_PORT=6379
APP_CACHE_STORE=none
APP_CACHE_TTL=10m
APP_HASH_ID_ALPHABET=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
APP_HASH_ID_MIN_LENGTH=0
APP_HASH_ID_SALT=kaeinmxpqirjskiqoekdnxjqirokmxklapq849jwnxmal
APP_HASH_ID_SEPS=cfhistuCFHISTU
APP_SERVICE_PORT=3000
APP_PROM_DEFAULT_LABELS={"pod":"melo-api"}
APP_PROM_DEFAULT_METRICS_ENABLED=true
APP_PROM_PATH=/metrics
APP_PROM_PREFIX=melo_api_
APP_RATE_LIMIIT_MAX=100
APP_RATE_LIMIIT_WINDOW_MS=15m
APP_SENTRY_DEBUG=true
APP_SENTRY_DSN=https://[email protected]/0000000
APP_SENTRY_ENVIROMENT=development
APP_SENTRY_LOG_LEVEL=3
APP_SENTRY_RELEASE=development
ACTION_SERVICE_URL=redis://redis:6379
ALBUM_SERVICE_URL=redis://redis:6379
ARTIST_SERVICE_URL=redis://redis:6379
AT_SERVICE_URL=redis://redis:6379
CONST_SERVICE_URL=redis://redis:6379
DOWNLOAD_SERVICE_URL=redis://redis:6379
EMOTION_SERVICE_URL=redis://redis:6379
FILE_SERVICE_URL=redis://redis:6379
JWKS_SERVICE_URL=redis://redis:6379
PLAYLIST_SERVICE_URL=redis://redis:6379
RELATION_SERVICE_URL=redis://redis:6379
RT_SERVICE_URL=redis://redis:6379
SEARCH_SERVICE_URL=redis://redis:6379
SONG_SERVICE_URL=redis://redis:6379
USER_SERVICE_URL=redis://redis:6379