mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-18 03:11:24 +00:00
Add option to enable/disable auth enforce using env variables
This commit is contained in:
parent
3245c6099c
commit
95340b21ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user