brainlet/config.js

31 lines
812 B
JavaScript
Raw Normal View History

2020-10-05 20:36:03 +03:00
module.exports = {
ports: {
2020-12-07 23:26:32 +02:00
mainServerPort: 3005,
2020-10-05 20:36:03 +03:00
},
2021-01-20 03:20:48 +02:00
address: 'localhost',
//restrictions: {
// signup: {
// specialCode: ''
// }
//},
2021-01-25 17:17:22 +02:00
mongoUrl: 'mongodb://localhost:27017/app',
2020-10-05 20:36:03 +03:00
bcryptRounds: 10,
roleMap: {
'BANNED': 0,
'RESTRICTED': 1,
'USER': 2,
'BOT': 3,
'ADMIN': 4
},
gatewayStillNotConnectedTimeoutMS: 15*1000
2020-12-06 15:18:32 +02:00
};
2021-01-28 22:43:26 +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`
];