Merge pull request 'Make default configuration work v2' (#15) from hiimgoodpack/brainlet:master into master

Reviewed-on: hippoz/brainlet#15
haha not signed
This commit is contained in:
hippoz 2021-01-30 14:22:48 +00:00
commit 50fa0e3f62
2 changed files with 11 additions and 1 deletions

View file

@ -47,4 +47,6 @@ Just run Brainlet with the command below:
node index.js node index.js
``` ```
Afterwards, try going [here](http://localhost:3005/auth.html) to visit the site.
Good luck! Good luck!

View file

@ -8,7 +8,6 @@ module.exports = {
// specialCode: '' // specialCode: ''
// } // }
//}, //},
corsAllowList: [ 'localhost' ],
mongoUrl: 'mongodb://localhost:27017/app', mongoUrl: 'mongodb://localhost:27017/app',
bcryptRounds: 10, bcryptRounds: 10,
roleMap: { roleMap: {
@ -20,3 +19,12 @@ module.exports = {
}, },
gatewayStillNotConnectedTimeoutMS: 15*1000 gatewayStillNotConnectedTimeoutMS: 15*1000
}; };
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`
];