n8n
Version:
n8n Workflow Automation Tool
152 lines (151 loc) • 3.5 kB
TypeScript
import convict from 'convict';
declare const config: convict.Config<{
executions: {
process: string;
mode: string;
concurrency: {
productionLimit: number;
};
timeout: number;
maxTimeout: number;
saveDataOnError: string;
saveDataOnSuccess: string;
saveExecutionProgress: boolean;
saveDataManualExecutions: boolean;
pruneData: boolean;
pruneDataMaxAge: number;
pruneDataHardDeleteBuffer: number;
pruneDataIntervals: {
hardDelete: number;
softDelete: number;
};
pruneDataMaxCount: number;
queueRecovery: {
interval: number;
batchSize: number;
};
};
generic: {
timezone: string;
instanceType: string;
releaseChannel: string;
gracefulShutdownTimeout: number;
};
secure_cookie: boolean;
ssl_key: string;
ssl_cert: string;
editorBaseUrl: string;
security: {
restrictFileAccessTo: string;
blockFileAccessToN8nFiles: boolean;
audit: {
daysAbandonedWorkflow: number;
};
};
workflowTagsDisabled: boolean;
userManagement: {
jwtSecret: string;
jwtSessionDurationHours: number;
jwtRefreshTimeoutHours: number;
isInstanceOwnerSetUp: boolean;
authenticationMethod: string;
};
externalFrontendHooksUrls: string;
externalHookFiles: string;
logs: {
level: string;
output: string;
file: {
fileCountMax: number;
fileSizeMax: number;
location: string;
};
};
push: {
backend: string;
};
binaryDataManager: {
availableModes: string;
mode: string;
localStoragePath: string;
};
deployment: {
type: string;
};
mfa: {
enabled: boolean;
};
sso: {
justInTimeProvisioning: boolean;
redirectLoginToSso: boolean;
saml: {
loginEnabled: boolean;
loginLabel: string;
};
ldap: {
loginEnabled: boolean;
loginLabel: string;
};
};
hiringBanner: {
enabled: boolean;
};
personalization: {
enabled: boolean;
};
diagnostics: {
enabled: boolean;
config: {
posthog: {
apiKey: string;
apiHost: string;
};
sentry: {
dsn: string;
};
frontend: string;
backend: string;
};
};
defaultLocale: string;
license: {
serverUrl: string;
autoRenewEnabled: boolean;
autoRenewOffset: number;
activationKey: string;
tenantId: number;
cert: string;
};
hideUsagePage: boolean;
redis: {
prefix: string;
queueModeId: string;
};
endpoints: {
rest: string;
};
ai: {
enabled: boolean;
};
aiAssistant: {
baseUrl: string;
};
expression: {
evaluator: string;
reportDifference: boolean;
};
sourceControl: {
defaultKeyPairType: string;
};
workflowHistory: {
enabled: boolean;
pruneTime: number;
};
multiMainSetup: {
enabled: boolean;
ttl: number;
interval: number;
};
proxy_hops: number;
}>;
export default config;