forked from zeeoneofficial/my-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
39 lines (38 loc) · 1.2 KB
/
settings.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
const fs = require('fs')
global.creator = 'ArulRamadan'// yourname
global.MONGO_DB_URI = "mongodb+srv://arulramadandev:%[email protected]/?retryWrites=true&w=majority&appName=Cluster0" //database mongodb
global.ACTIVATION_TOKEN_SECRET = "-@Pqnap+@(/1jAPPnew/@10" //isi apa aja bebas
global.your_email = "[email protected]" //email
global.email_password = "uwev fmxs ugst doar" //application password email
global.limitCount = 10000
global.YUOR_PORT = 8000
global.loghandler = {
noapikey:{
status: 403,
message: 'Input parameter apikey',
creator: `${creator}`,
result: "error"
},
error: {
status: 503,
message: 'Service Unavaible, Sedang dalam perbaikan',
creator: `${creator}`
},
apikey: {
status: 403,
message: 'Forbiden, Invalid apikey',
creator: `${creator}`
},
noturl: {
status: 403,
message: 'Forbiden, Invlid url, masukkan parameter url',
creator: `${creator}`,
}
}
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(`Update'${__filename}'`)
delete require.cache[file]
require(file)
})