From 2ce9b4e0c35be8e8b069a64e15969fbec50b5336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 25 Sep 2020 21:34:27 +0200 Subject: [PATCH] fix: Add option via env for ADMIN_AUTHENTICATION closes #626 --- CHANGELOG.md | 1 + lib/options.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 298c7e041e..2c5767798a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - fix: improve import/export documentation - fix: update helmet config - fix: Heroku Postgres add-on version change (#631) +- fix: Add option via env for ADMIN_AUTHENTICATION ## 3.5.4 diff --git a/lib/options.js b/lib/options.js index fef5dcb0c4..d96a028c72 100644 --- a/lib/options.js +++ b/lib/options.js @@ -45,7 +45,7 @@ function defaultOptions() { publicFolder, enableRequestLogger: false, sessionAge: THIRTY_DAYS, - adminAuthentication: 'unsecure', + adminAuthentication: process.env.ADMIN_AUTHENTICATION || 'unsecure', ui: {}, importFile: undefined, dropBeforeImport: false,