forked from hippoz/brainlet
Merge
This commit is contained in:
parent
1c1b710cde
commit
839b387273
1 changed files with 11 additions and 6 deletions
17
config.js
17
config.js
|
@ -8,10 +8,7 @@ module.exports = {
|
||||||
// specialCode: ''
|
// specialCode: ''
|
||||||
// }
|
// }
|
||||||
//},
|
//},
|
||||||
corsAllowList: [ "http://localhost:3000", "http://localhost:3005" ],
|
mongoUrl: "mongodb://localhost:27017/app",
|
||||||
mongoUrl: "mongodb://192.168.0.105:27017/app",
|
|
||||||
|
|
||||||
// Internal stuff - only touch if you know what you're doing
|
|
||||||
bcryptRounds: 10,
|
bcryptRounds: 10,
|
||||||
roleMap: {
|
roleMap: {
|
||||||
"BANNED": 0,
|
"BANNED": 0,
|
||||||
|
@ -20,6 +17,14 @@ module.exports = {
|
||||||
"BOT": 3,
|
"BOT": 3,
|
||||||
"ADMIN": 4
|
"ADMIN": 4
|
||||||
},
|
},
|
||||||
gatewayStillNotConnectedTimeoutMS: 15*1000,
|
gatewayStillNotConnectedTimeoutMS: 15*1000
|
||||||
gatewayMaxStringPayloadLength:
|
|
||||||
};
|
};
|
||||||
|
module.exports.corsAllowList = [
|
||||||
|
// Allow the normal web interface
|
||||||
|
`http://${module.exports.address}:${module.exports.ports.mainServerPort}`,
|
||||||
|
`https://${module.exports.address}:${module.exports.ports.mainServerPort}`,
|
||||||
|
|
||||||
|
// Allow brainet-react
|
||||||
|
`http://${module.exports.address}:3000`,
|
||||||
|
`https://${module.exports.address}:3000`
|
||||||
|
];
|
||||||
|
|
Loading…
Reference in a new issue