2021-03-04 21:28:02 +02:00
|
|
|
module.exports = {
|
|
|
|
ports: {
|
|
|
|
mainServerPort: 3005,
|
|
|
|
},
|
|
|
|
address: "localhost",
|
|
|
|
//restrictions: {
|
|
|
|
// signup: {
|
|
|
|
// specialCode: ''
|
|
|
|
// }
|
|
|
|
//},
|
2021-03-04 21:32:29 +02:00
|
|
|
mongoUrl: "mongodb://localhost:27017/app",
|
2021-03-04 21:28:02 +02:00
|
|
|
bcryptRounds: 10,
|
|
|
|
roleMap: {
|
|
|
|
"BANNED": 0,
|
|
|
|
"RESTRICTED": 1,
|
|
|
|
"USER": 2,
|
|
|
|
"BOT": 3,
|
|
|
|
"ADMIN": 4
|
|
|
|
},
|
2021-03-04 21:32:29 +02:00
|
|
|
gatewayStillNotConnectedTimeoutMS: 15*1000
|
2021-03-04 21:28:02 +02:00
|
|
|
};
|
2021-03-04 21:32:29 +02:00
|
|
|
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`
|
|
|
|
];
|