Remove the hardcoded redirect to use the one from the config
diff --git a/app.js b/app.js index 2192204..a7b30b0 100644 --- a/app.js +++ b/app.js
@@ -190,7 +190,7 @@ } app.get('/', function (req, res, next) { - res.redirect('/cve/?state=DRAFT,READY,REVIEW'); + res.redirect(app.locals.confOpts['cve'].conf.uri); }); if(conf.httpsOptions) { @@ -201,4 +201,4 @@ app.listen(conf.serverPort, conf.serverHost, function () { console.log('Server started at http://' + conf.serverHost + ':' + conf.serverPort); }); -} \ No newline at end of file +}