generated from MuhamedMagdi/express-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
32 lines (25 loc) · 979 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
#SERVER
PORT=3000
ENV=dev
#DATABASE
MONGODB_PROTOCOL=mongodb # MongoDB protocol [mongodb, mongodb+srv]
MONGODB_PASSWORD=
MONGODB_USERNAME=
MONGODB_HOST=mongo:27017 # If you changed the mongodb config in docker-compose you should change it here as well
#BCRYPT
BCRYPT_PAPER=secret # This should be changed
BCRYPT_ROUNDS=12
#JWT
JWT_SECRET=secret # This sould be changed
JWT_EXPIRES_IN=90d
JWT_COOKIE_EXPIRES_IN=90 # JWT_COOKIE_EXPIRES_IN and JWT_EXPIRES_IN should logicly be equal
# If you want to change cookie max age from days to any thing else you should also change line 18 in ./src/controllers/authController.js
#EMAIL
EMAIL= # The 'From' email
EMAIL_HOST= # SMTP host name
EMAIL_PORT= # SMTP port
EMAIL_USERNAME= # SMTP username
EMAIL_PASSWORD= # SMTP password
#FIREBASE
ACCOUNT_PATH= # Path to your account settings
STORAGE_BUCKET= # Bucket name