-
Notifications
You must be signed in to change notification settings - Fork 23
/
.env.example
73 lines (55 loc) · 1.06 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
# .env.example
# Environment Name
NODE_ENV=development
# TimeZone
TZ=UTC
# Server listen to this port
PORT=3000
#Cors
CORS_URL=*
# Databse
# on localmachine
# DB_HOST=localhost
# on docker
DB_HOST=mongo
DB_ADMIN=admin
DB_ADMIN_PWD=changeit
DB_PORT=27017
DB_NAME=wimm-db
DB_USER=wimm-db-user
DB_USER_PWD=changeit
DB_MIN_POOL_SIZE=2
DB_MAX_POOL_SIZE=5
# Redis
# on localmachine
# REDIS_HOST=localhost
# on docker
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=changeit
REDIS_TTL=60
# Log
# Example '/home/node/logs'
# DEFAUlT is this project's directory
LOG_DIR=logs
# Token Info
# 2 DAYS: 172800 Sec
ACCESS_TOKEN_VALIDITY_SEC=172800
# 7 DAYS: 604800 Sec
REFRESH_TOKEN_VALIDITY_SEC=604800
TOKEN_ISSUER=api.dev.xyz.com
TOKEN_AUDIENCE=xyz.com
# Caching
CONTENT_CACHE_DURATION_MILLIS=600000
# Firebase
FIREBASE_DB_URL=
# Notification Center
NOTIFICATION_DRY_RUN=true
NOTIFICATION_VIEWS_INTERVAL=20
# Local disk for storage
DISK_STORAGE_PATH=disk
# 1 Year
IMAGE_CACHE_DURATION=31536000
# Auth keys
AUTH_PUBLIC_KEY_PATH=keys/public.pem
AUTH_PRIVATE_KEY_PATH=keys/private.pem