-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappConfig.template.js
More file actions
34 lines (30 loc) · 1.19 KB
/
appConfig.template.js
File metadata and controls
34 lines (30 loc) · 1.19 KB
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
//Instructions for Team Members
//Team members are advised to follow these steps for setting up their local development environment:
//1. Copy `appConfig.template.js` to`appConfig.js`.
//2. Replace placeholder values in `appConfig.js` with actual configuration details specific to their local environment.
//3(optional) If Git already track appConfig.js, YOU may want to use this command git rm --cached appConfig.js to remove appConfig.js from git tracking.
require('dotenv').config(); // This will load environment variables from a .env file
module.exports = {
jwtConfig: {
secret: process.env.JWT_SECRET,
audience: "apitester",
issuer: "issuer",
algorithms: ["HS256"],
expiresIn: '2h'
},
mysqlConfig: {
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: "defaultdb",
port: process.env.MYSQL_PORT
},
bcryptConfig: {
salt: process.env.BCRYPT_SALT
},
cloudinaryConfig: {
cloud_name: process.env.CLOUDINARY_CLOUD_NAME,
api_key: process.env.CLOUDINARY_API_KEY,
api_secret: process.env.CLOUDINARY_API_SECRET
},
};