config error detection

This commit is contained in:
Jan Prochazka
2024-08-08 09:46:42 +02:00
parent 47729d8cc3
commit a9352f2a93
4 changed files with 11 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ function start() {
const server = http.createServer(app);
if (process.env.BASIC_AUTH) {
if (process.env.BASIC_AUTH && !process.env.STORAGE_DATABASE) {
async function authorizer(username, password, cb) {
try {
const resp = await getDefaultAuthProvider().login(username, password);