-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
100 lines (80 loc) · 2.12 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Environment Name
NODE_ENV=development
# Frontend reset password url
FRONTEND_RESET_URL=http://localhost:3000/
# Api version
API_VERSION=v1
# Server listen to this port
PORT=3001
# Server url
SERVER_URL=http://localhost:3001
# JSON payload limit in HTTP requests
JSON_PAYLOAD_LIMIT=10485760
JSON_PAYLOAD_PARAMETER_LIMIT=5000
# Cors
CORS_URL=http://localhost:3000
# Logging
LOG_DIR=logs
LOG_MAX_SIZE=20m
LOG_MAX_FILES=14d
LOG_DATE_PATTERN=YYYY-MM-DD-HH
# Database
# YOUR_MONGO_URI
DB_URI=mongodb://localhost:27017/
# YOUR_MONGO_DB_NAME
DB_DATABASE_NAME=node-db-v1
# YOUR_MONGO_DB_USER_NAME
DB_USERNAME=nodeApplicationUser
# YOUR_MONGO_DB_USER_PWD
DB_PWD=123456789
# Maintain up to x socket connections
DB_MIN_POOL_SIZE=2
DB_MAX_POOL_SIZE=5
# Give up initial connection after 10 seconds
DB_CONNECT_TIMEOUT_MS=60000
# Close sockets after 45 seconds of inactivity
DB_SOCKET_TIMEOUT_MS=45000
# 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=127.0.0.1
DB_PORT=27017
# Limiter
# The time window for which login attempts are counted
# 2 minutes = 120000
LIMITER_LOGIN_WS=120000
LIMITER_FORGOT_PASSWORD_WS=120000
# The maximum number of attempts allowed within the specified window
LIMITER_LOGIN_ATTEMPT=5
LIMITER_FORGOT_PASSWORD_ATTEMPT=2
# 15 minutes fo the IP
# Limit each IP to 100 requests per windowMs
LIMITER_IP_WS=900000
LIMITER_IP_ATTEMPT=100
# Cookie Info
COOKIE_LOGIN=rememberme
# 7 DAYS: 604800 Sec
COOKIE_MAX_AGE_SEC=604800
# Token Info
ACCESS_TOKEN_SECRET_KEY=
REFRESH_TOKEN_SECRET_KEY=
# 2 DAYS: 172800 Sec
ACCESS_TOKEN_VALIDITY_SEC=172800
# 7 DAYS: 604800 Sec
REFRESH_TOKEN_VALIDITY_SEC=604800
# 1 hour: 3600000 Sec
PASSWORD_RESET_TOKEN_VALIDITY_SEC=3600000
TOKEN_ISSUER=api.dev.saini.com
TOKEN_AUDIENCE=dev.saini.com
# Make the value production for prod env
MAILTRAP_EMAIL_ENV=testing
# Mailtrap(Email service) Info
MAILTRAP_USERNAME=
MAILTRAP_PASSWORD=
MAILTRAP_HOST=
MAILTRAP_PORT=
# Mailtrap Testing(Email service) Info
MAILTRAP_TESTING_USERNAME=
MAILTRAP_TESTING_PASSWORD=
MAILTRAP_TESTING_HOST=
MAILTRAP_TESTING_PORT=