mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Port templates config (no-changelog) (#10103)
This commit is contained in:
12
packages/@n8n/config/src/configs/templates.ts
Normal file
12
packages/@n8n/config/src/configs/templates.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Config, Env } from '../decorators';
|
||||
|
||||
@Config
|
||||
export class TemplatesConfig {
|
||||
/** Whether to load workflow templates. */
|
||||
@Env('N8N_TEMPLATES_ENABLED')
|
||||
readonly enabled: boolean = true;
|
||||
|
||||
/** Host to retrieve workflow templates from endpoints. */
|
||||
@Env('N8N_TEMPLATES_HOST')
|
||||
readonly host: string = 'https://api.n8n.io/api/';
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { EmailConfig } from './configs/email';
|
||||
import { VersionNotificationsConfig } from './configs/version-notifications';
|
||||
import { PublicApiConfig } from './configs/public-api';
|
||||
import { ExternalSecretsConfig } from './configs/external-secrets';
|
||||
import { TemplatesConfig } from './configs/templates';
|
||||
|
||||
@Config
|
||||
class UserManagementConfig {
|
||||
@@ -31,4 +32,7 @@ export class GlobalConfig {
|
||||
|
||||
@Nested
|
||||
externalSecrets: ExternalSecretsConfig;
|
||||
|
||||
@Nested
|
||||
templates: TemplatesConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user