-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
40 lines (40 loc) · 1.69 KB
/
next.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
module.exports = {
env: {
nodeEnv: "development",
dbUser: "muhi",
dbPass: "muhi.org",
dbHost: "quiz.manng.mongodb.net",
dbName: "Quiz",
dbConnectionString: `mongodb+srv://<dbUser>:<dbPass>@<dbHost>/<dbName>?retryWrites=true&w=majority`,
userCollection: "accounts",
quizCollection: "quizzes",
reportsCollection: "reports",
newsletterCollection: "newsletters",
hashSecret:
"0254aed3ddfa2030ccb2c463fdb7ae0e99db6d9b181c004d7bd95ebb66ea4944", // sha256 hash of 'muhiquiz'
hashSaltRounds: 10,
authTokenExpiryTime: "7d",
resetTokenExpiryTime: "15m",
cookieExpiryTime: 60 * 60 * 24 * 7, //7 days in seconds
cookieName: "jwt",
mailService: "gmail",
mailUser: "[email protected]",
mailPassword: "aeqqlwyuysqqniff",
mailSubject_passwordResetRequest: "Password reset link",
mailSubject_passwordResetNotification: "Password reset notificationn",
mailSubject_accountCreationNotification: "Account creation notification",
passwordResetRequest:
"Password reset request is submitted for your account. Please use the following link <link> to reset the password. If its not you, please ignore this mail.",
passwordResetNotification:
"Your Muhi Account's password was changed successfully. Please use the following link <link> to log into your account.",
accountCreationNotification:
"You have created an account in Muhi Quiz. Please use the following link <link> to take quizzes.",
routes: {
loginRedirectAdmin: "/admin/dashboard",
loginRedirectUser: "/dashboard",
invalidPassword: "?incorrect",
invalidUser: "?incorrect",
passwordResetPath: "/admin/reset_password/",
},
},
};