-
Notifications
You must be signed in to change notification settings - Fork 653
/
.env.example
57 lines (43 loc) · 985 Bytes
/
.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
# .env.example
# Environment Name
NODE_ENV=development
# TimeZone
TZ=UTC
# Server listen to this port
PORT=3000
#Cors
CORS_URL=*
# Databse
# YOUR_MONGO_DB_NAME
DB_NAME=blogs-db
DB_MIN_POOL_SIZE=2
DB_MAX_POOL_SIZE=5
#localhost or IP of the server
# If using the docker installation then use 'mongo' for host name else localhost or ip or db server
#YOUR_MONGO_DB_HOST_NAME
DB_HOST=mongo
DB_PORT=27017
#YOUR_MONGO_DB_USER_NAME
DB_USER=blogs-db-user
#YOUR_MONGO_DB_USER_PWD
DB_USER_PWD=changeit
# Admin of mongo db when using Docker
DB_ADMIN=admin
DB_ADMIN_PWD=changeit
# Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=changeit
# Log
# Example '/home/node/logs'
# DEFAUlT is this project's directory
# LOG_DIR=YOUR_DIRECTORY_PATH_FOR_LOG_FILES
# 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