-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
78 lines (63 loc) · 1.54 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
74
75
76
77
78
######## SERVER // production - development
NODE_ENV=development
PORT=4000
LOG_LEVEL=log,error,warn,debug,verbose
SERVER_URL=http://localhost:4000
LISTEN_ON='0.0.0.0'
DOMAIN_WHITELIST=http://localhost:3001,http://localhost:3000,http://localhost:5000,*
######## API
API_PREFIX=api
######## TIMEZONE
TIMEZONE=Asia/Ho_Chi_Minh
######## Pagination config
PAGE_SIZE=20
######## THROTTLE
THROTTLE_TTL=30
THROTTLE_LIMIT=300
######## BCRYPT
BCRYPT_SALT=10
######## i18n config
DEFAULT_LOCALE=vi
######## JWT
JWT_SECRET_KEY=JWT_SECRET_KEY!@
JWT_EXPIRES_IN=10h
JWT_REFRESH_EXPIRES_IN=5d
JWT_REFRESH_TOKEN_EXPIRATION=JWT_REFRESH_TOKEN_EXPIRATION!@
######## DATABASE
DATABASE_CONNECTION=postgres
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=password
DATABASE_DB_NAME=nest-starter
######## FILE
MAX_FILE_SIZE=10485760 // 10MB
MAX_FILE_SIZE_IMAGE=10485760 // 10MB
MAX_FILE_SIZE_VIDEO=524288000 // 500MB
UPLOAD_LOCATION=public/upload
######## MAILER
NODEMAILER_HOST=smtp.gmail.com
NODEMAILER_PORT=465
NODEMAILER_SECURE=true
NODEMAILER_USER=
NODEMAILER_PASS=
######## REDIS_HOST
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_DB=
######## CONFIG OTP
OTP_LENGTH=6
OTP_TTL=300
OTP_RESEND_TIME=60
######## CONFIG cloudinary
CLOUD_NAME=CLOUD_NAME
CLOUD_API_KEY=CLOUD_API_KEY
CLOUD_API_SECRET=CLOUD_API_SECRET
######## AWS
AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY
AWS_REGION=AWS_REGION
######## SENTRY
SENTRY_DSN=https://[email protected]/xxxx