mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-21 04:10:58 +02:00
17 lines
497 B
TypeScript
17 lines
497 B
TypeScript
import { Config, Env } from '../decorators';
|
|
|
|
@Config
|
|
export class MultiMainSetupConfig {
|
|
/** Whether to enable multi-main setup (if licensed) for scaling mode. */
|
|
@Env('N8N_MULTI_MAIN_SETUP_ENABLED')
|
|
enabled: boolean = false;
|
|
|
|
/** Time to live (in seconds) for leader key in multi-main setup. */
|
|
@Env('N8N_MULTI_MAIN_SETUP_KEY_TTL')
|
|
ttl: number = 10;
|
|
|
|
/** Interval (in seconds) for leader check in multi-main setup. */
|
|
@Env('N8N_MULTI_MAIN_SETUP_CHECK_INTERVAL')
|
|
interval: number = 3;
|
|
}
|