From 95340b21ee878ecf038bdaaeb6a61f2a9642d482 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 17 Jul 2022 06:34:17 +0200 Subject: [PATCH] Add option to enable/disable auth enforce using env variables --- common/frontend_server/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/frontend_server/index.mjs b/common/frontend_server/index.mjs index 027ff20f..4c098123 100644 --- a/common/frontend_server/index.mjs +++ b/common/frontend_server/index.mjs @@ -103,7 +103,7 @@ export default async function(opts) { } const config = { - authRequired: (process.env['DISABLE_AUTH_ENFORCE'] && process.env['DISABLE_AUTH_ENFORCE'] === 'false') || !!!opts.disableAuthEnforce, + authRequired: process.env['DISABLE_AUTH_ENFORCE'] ? process.env['DISABLE_AUTH_ENFORCE'] === 'false' : !!!opts.disableAuthEnforce, // Disable telemetry enableTelemetry: false, // Use dev secret is none is present (Prod requires a secret so not a security issue)