refactor(core): Port external secrets config (no-changelog) (#10094)
This commit is contained in:
12
packages/@n8n/config/src/configs/external-secrets.ts
Normal file
12
packages/@n8n/config/src/configs/external-secrets.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Config, Env } from '../decorators';
|
||||
|
||||
@Config
|
||||
export class ExternalSecretsConfig {
|
||||
/** How often (in seconds) to check for secret updates */
|
||||
@Env('N8N_EXTERNAL_SECRETS_UPDATE_INTERVAL')
|
||||
readonly updateInterval: number = 300;
|
||||
|
||||
/** Whether to prefer GET over LIST when fetching secrets from Hashicorp Vault */
|
||||
@Env('N8N_EXTERNAL_SECRETS_PREFER_GET')
|
||||
readonly preferGet: boolean = false;
|
||||
}
|
||||
Reference in New Issue
Block a user