mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 17:08:29 +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 = {
|
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
|
// Disable telemetry
|
||||||
enableTelemetry: false,
|
enableTelemetry: false,
|
||||||
// Use dev secret is none is present (Prod requires a secret so not a security issue)
|
// Use dev secret is none is present (Prod requires a secret so not a security issue)
|
||||||
|
Loading…
Reference in New Issue
Block a user