diff --git a/app.js b/app.js index 8f4951b..455ab24 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,10 @@ +const {test_config} = require('./tests/config') + +if (!test_config()) { + process.exit(1) +} +console.log('all initial tests successfully passed') + const {port} = require('./config') const app = require('express')() const helmet = require('helmet') @@ -8,13 +15,6 @@ const {request_logger, error_logger} = require('./src/middlewares/logger') const {options, cors} = require('./src/middlewares/cors') const {error_handler} = require('./src/middlewares/error_handler') //const limiter = require('./src/middlewares/limiter') -const {test_config} = require('./tests/config') - -if (!test_config()) { - process.exit(1) -} - -console.log('all initial tests successfully passed') app.options(options) diff --git a/config.js b/config.js index b145eed..01b4ccb 100644 --- a/config.js +++ b/config.js @@ -10,7 +10,9 @@ module.exports = { "http://localhost:3000", "https://stream.graff.tech/", "http://212.220.216.185:3005", - "https://stream.graff.tech" + "https://stream.graff.tech", + "http://test.stream.graff.tech", + "https://test.stream.graff.tech" ], limiter: { window_minutes: 10,