-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
44 lines (39 loc) · 1.07 KB
/
config.js
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
const dotenv = require("dotenv");
dotenv.config();
const mysql_config = {
host: "localhost",
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: "oasis",
connectionLimit: 5,
charset: "utf8mb4",
};
const mongo_config = {
uri: process.env.MONGODB_URI,
database: "oasis",
// options: {
// useNewUrlParser: true,
// useUnifiedTopology: true,
// poolSize: 10, // 커넥션 풀 사이즈 설정
// },
};
const smtp_config = {
host: "smtp.gmail.com",
port: 587,
secure: false, // true for 465, false for other ports
auth: {
// type: "OAuth2",
// user: process.env.GMAIL_OAUTH_USER,
// clientId: process.env.GMAIL_OAUTH_CLIENT_ID,
// clientSecret: process.env.GAMIL_OAUTH_CLIENT_SECRET,
// accessToken: process.env.GAMIL_OAUTH_ACCESS_TOKEN,
// refreshToken: process.env.GAMIL_OAUTH_REFRESH_TOKEN,
user: process.env.GMAIL_EMAIL,
pass: process.env.GAMIL_APP_PASSWORD,
},
from: "tgu06167@gmial.com",
};
const redis_config = {
url: process.env.REDIS_URL,
};
module.exports = { mysql_config, mongo_config, smtp_config, redis_config };