-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.json
100 lines (100 loc) · 2.4 KB
/
server.json
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
{
"logger": {
"enableLogger": true,
"maxLogSize": 5,
"logInConsole": false
},
"server": {
"PORT": 8080,
"isHttp": true,
"preventions": {
"sqLInjection": true,
"enableAccessControl": true,
"enableReCaptcha": true,
"logoutSessionHijack": true,
"preventCsp": false,
"limitRequest": {
"state": false,
"limit": {
"request": 2e2,
"periodInMs": 3e4
}
}
},
"limit": {
"register": {
"requests": 3,
"minutes": 10
},
"login": {
"requests": 5,
"minutes": 10
},
"image": {
"requests": 3,
"minutes": 10
}
},
"expiry": {
"password": {
"renewalInMonths": 3,
"resetExpireInMinute": 10
}
}
},
"image": {
"extensions": [
"jpg",
"jpeg",
"png",
"gif",
"bmp",
"svg",
"webp",
"ico",
"ttif",
"pdf"
],
"maxUploads": 10,
"maxFileSize": 10485760,
"storagePath": "storage/",
"displayPath": "uploads/"
},
"database": {
"scriptName": "ImageServer"
},
"mail": {
"appName": "ImageServer",
"from": "dsubedi@ismt.edu.np",
"priority": "high",
"port": 2525,
"secure": false,
"host": "smtp.mailtrap.io",
"auth": {
"user": "e6290a30fab054",
"pass": "a5328582691495"
}
},
"reCaptcha": {
"siteKey": "6Ldgc0cgAAAAAHjqNfj5q4qWUruiHOnlF_3iF37k",
"secretKey": "6Ldgc0cgAAAAAIOayrU40OKE_GDJdzdKJjSJUtKV",
"endPoints": [
"/api/auth/register",
"/api/auth/verification",
"/api/auth/login",
"/api/auth/forgot",
"/api/auth/reset",
"/api/image/upload"
]
},
"jwt": {
"secret": "jwtSecret@Image _Sever.2022",
"expiry": "2h",
"appliedEndPoints": [
"/api/auth/logout",
"/api/auth/login_check",
"/api/image",
"/api/user"
]
}
}