SYNC: SKIP_ALL_AUTH support

This commit is contained in:
SPRINX0\prochazka
2025-07-16 14:48:12 +02:00
committed by Diflow
parent 23065f2c4b
commit 949817f597
3 changed files with 9 additions and 0 deletions

View File

@@ -67,6 +67,11 @@ function authMiddleware(req, res, next) {
// const isAdminPage = req.headers['x-is-admin-page'] == 'true';
if (process.env.SKIP_ALL_AUTH) {
// API is not authorized for basic auth
return next();
}
if (process.env.BASIC_AUTH) {
// API is not authorized for basic auth
return next();