-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathconfig.example.js
94 lines (92 loc) · 3.06 KB
/
config.example.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
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
"use strict";
import path from "path";
const config = {
// security
__DEBUG__: false, // WARNING: THIS WILL ENABLE NO AUTH & NO CAPTCHA FEATURE
secret: 'dontTellAnyOneAboutThis', // key to sign jwt and other thing
captchaExpiresIn: 1000 * 60 * 20, // 2 minutes
userTokenExpiresIn: 1000 * 60 * 60 * 24 * 7, // 7 day
errorHelperVerbose: process.env.NODE_ENV !== 'production', // make the error readable to client
// runtime
port: process.env.port || 4002,
address: '0.0.0.0',
baseDir: path.resolve('./'),
behindProxy: 0,
pollingTimeout: 90 * 1000,
// database
mysql: {
host: '127.0.0.1',
port: 3306,
user: 'not root',
password: 'weak passwd',
database: 'bfban_2.0'
},
// using cloudflare?
cloudflare: true,
// github
github: {},
// Go to https://akismet.com to generate the key
// isEnable: Is it detected
// debug: If enabled, the submitted data does not affect akismet and is only used for testing purposes
akismet: {
key: 'your Akismet key',
isEnable: true,
debug: true,
},
// gravatar
gravatar: {
domain: 'https://www.gravatar.com'
},
webhook: {
senderUrl: '', // use cloudflare worker to proxy webhook request
token: '', // token it use
},
mail: {
host: 'smtp.somewhere.com',
port: 465,
secure: true,
user: '[email protected]',
password: 'not weak password',
domain: {
// Do not add '/', only the protocol + domain name
origin: 'you website domain'
},
},
services: {
// deployment has 3 mode: THREAD, PROCESS, none
// THREAD mode will start the service as a thread
// PROCESS mode will check if the service has launched before, if not, start the service as a process
// if none is specified, service/loader.js will not launch the service script, use it when the service is not deploy locally
eaAPI: {
deployment: 'THREAD',
url: 'http://unix://?/pipe/bfban/eaAPI:',
},
msGraphAPI: {
deployment: 'PROCESS',
url: 'http://localhost:4001',
// the onedrive directory's id you want to store files in
// https://developer.microsoft.com/zh-cn/graph/graph-explorer
baseDirId: '',
}
},
// DYNAMIC CONFIGURE BEGIN
supportLanguages: ['zh-CN', 'en-US'],
personsToConfirm: 2,
personsToReview: 2,
// to [https://accounts.ea.com/connect], get Cookie, key: remid and sid
originAccounts: [
{
tag: '',
remid: '',
sid: ''
},
],
// user login MODE
defaultVisit: 'websites',
visitType: ['websites', 'client-phone', 'client-desktop', 'external-auth', 'bot'],
supportGames: ['bf1', 'bfv', 'bf6'],
possiblecheatMethods: ['wallhack', 'aimbot', 'invisable', 'magicBullet',
'damageChange', 'gadgetModify', 'teleport', 'attackServer'],
// DYNAMIC CONFIGURE END
}
export default config;