fix(ci): community template disabled in setup

This commit is contained in:
lowlighter
2022-07-07 12:37:49 -04:00
parent e5ac7a2e34
commit 86157ab7fd
2 changed files with 3 additions and 3 deletions

View File

@@ -400,9 +400,9 @@ export default async function({sandbox = false} = {}) {
}
//Control endpoints
if ((conf.settings.control?.token) && (conf.settings.control.token)) {
if (conf.settings.control?.token) {
const middleware = (req, res, next) => {
console.log(`metrics/app/control > ${req.method} > ${req.url}`)
console.log(`metrics/app/control > ${req.url.replace(/[\n\r]/g, "")}`)
if (req.headers.authorization === conf.settings.control.token) {
next()
return