Use ENV Vars for 2FA Settings GitOrigin-RevId: 1b6f943ba5d9b58a2db2d082849a7f142d74a254
@@ -239,8 +239,8 @@ module.exports = settings =
httpAuthUsers: httpAuthUsers
twoFactorAuthentication:
- enabled: false
- requiredForStaff: false
+ enabled: process.env['TWO_FACTOR_AUTHENTICATION_ENABLED'] == 'true'
+ requiredForStaff: process.env['TWO_FACTOR_AUTHENTICATION_REQUIRED_FOR_STAFF'] == 'true'
# Default features
# ----------------