2024-07-29 05:32:20 -07:00
|
|
|
import { Config, Env, Nested } from './decorators';
|
2024-08-14 02:30:26 -07:00
|
|
|
import { CredentialsConfig } from './configs/credentials.config';
|
|
|
|
import { DatabaseConfig } from './configs/database.config';
|
|
|
|
import { VersionNotificationsConfig } from './configs/version-notifications.config';
|
|
|
|
import { PublicApiConfig } from './configs/public-api.config';
|
|
|
|
import { ExternalSecretsConfig } from './configs/external-secrets.config';
|
|
|
|
import { TemplatesConfig } from './configs/templates.config';
|
|
|
|
import { EventBusConfig } from './configs/event-bus.config';
|
|
|
|
import { NodesConfig } from './configs/nodes.config';
|
|
|
|
import { ExternalStorageConfig } from './configs/external-storage.config';
|
|
|
|
import { WorkflowsConfig } from './configs/workflows.config';
|
|
|
|
import { EndpointsConfig } from './configs/endpoints.config';
|
|
|
|
import { CacheConfig } from './configs/cache.config';
|
2024-08-12 02:03:37 -07:00
|
|
|
import { ScalingModeConfig } from './configs/scaling-mode.config';
|
2024-08-14 02:30:26 -07:00
|
|
|
import { UserManagementConfig } from './configs/user-management.config';
|
2024-07-05 02:43:27 -07:00
|
|
|
|
|
|
|
@Config
|
|
|
|
export class GlobalConfig {
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
database: DatabaseConfig;
|
2024-07-05 02:43:27 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
credentials: CredentialsConfig;
|
2024-07-05 02:43:27 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
userManagement: UserManagementConfig;
|
2024-07-17 06:36:40 -07:00
|
|
|
|
2024-07-17 10:11:46 -07:00
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
versionNotifications: VersionNotificationsConfig;
|
2024-07-17 10:11:46 -07:00
|
|
|
|
2024-07-17 06:36:40 -07:00
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
publicApi: PublicApiConfig;
|
2024-07-18 01:52:41 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
externalSecrets: ExternalSecretsConfig;
|
2024-07-19 01:33:28 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
templates: TemplatesConfig;
|
2024-07-19 04:25:44 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
eventBus: EventBusConfig;
|
2024-07-23 04:32:50 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
nodes: NodesConfig;
|
2024-07-24 04:08:20 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
externalStorage: ExternalStorageConfig;
|
2024-07-24 05:38:29 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
workflows: WorkflowsConfig;
|
2024-07-29 05:32:20 -07:00
|
|
|
|
|
|
|
/** Path n8n is deployed to */
|
|
|
|
@Env('N8N_PATH')
|
2024-08-15 04:58:20 -07:00
|
|
|
path: string = '/';
|
2024-07-29 05:32:20 -07:00
|
|
|
|
|
|
|
/** Host name n8n can be reached */
|
|
|
|
@Env('N8N_HOST')
|
2024-08-15 04:58:20 -07:00
|
|
|
host: string = 'localhost';
|
2024-07-29 05:32:20 -07:00
|
|
|
|
|
|
|
/** HTTP port n8n can be reached */
|
|
|
|
@Env('N8N_PORT')
|
2024-08-15 04:58:20 -07:00
|
|
|
port: number = 5678;
|
2024-07-29 05:32:20 -07:00
|
|
|
|
|
|
|
/** IP address n8n should listen on */
|
|
|
|
@Env('N8N_LISTEN_ADDRESS')
|
2024-08-15 04:58:20 -07:00
|
|
|
listen_address: string = '0.0.0.0';
|
2024-07-29 05:32:20 -07:00
|
|
|
|
|
|
|
/** HTTP Protocol via which n8n can be reached */
|
|
|
|
@Env('N8N_PROTOCOL')
|
2024-08-14 02:30:26 -07:00
|
|
|
protocol: 'http' | 'https' = 'http';
|
2024-07-31 08:45:11 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
endpoints: EndpointsConfig;
|
2024-08-02 08:10:03 -07:00
|
|
|
|
|
|
|
@Nested
|
2024-08-14 02:30:26 -07:00
|
|
|
cache: CacheConfig;
|
2024-08-12 02:03:37 -07:00
|
|
|
|
|
|
|
@Nested
|
|
|
|
queue: ScalingModeConfig;
|
2024-07-05 02:43:27 -07:00
|
|
|
}
|