mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
refactor(core): Mark schema env vars used by cloud hooks (no-changelog) (#10283)
This commit is contained in:
parent
47a68b0220
commit
c3e2e84065
|
@ -4,6 +4,7 @@ import { Container } from 'typedi';
|
||||||
import { InstanceSettings } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { LOG_LEVELS } from 'n8n-workflow';
|
import { LOG_LEVELS } from 'n8n-workflow';
|
||||||
import { ensureStringArray } from './utils';
|
import { ensureStringArray } from './utils';
|
||||||
|
import { GlobalConfig } from '@n8n/config';
|
||||||
|
|
||||||
convict.addFormat({
|
convict.addFormat({
|
||||||
name: 'comma-separated-list',
|
name: 'comma-separated-list',
|
||||||
|
@ -381,12 +382,17 @@ export const schema = {
|
||||||
default: 0,
|
default: 0,
|
||||||
env: 'N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS',
|
env: 'N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @important Do not remove until after cloud hooks are updated to stop using convict config.
|
||||||
|
*/
|
||||||
isInstanceOwnerSetUp: {
|
isInstanceOwnerSetUp: {
|
||||||
// n8n loads this setting from DB on startup
|
// n8n loads this setting from DB on startup
|
||||||
doc: "Whether the instance owner's account has been set up",
|
doc: "Whether the instance owner's account has been set up",
|
||||||
format: Boolean,
|
format: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
authenticationMethod: {
|
authenticationMethod: {
|
||||||
doc: 'How to authenticate users (e.g. "email", "ldap", "saml")',
|
doc: 'How to authenticate users (e.g. "email", "ldap", "saml")',
|
||||||
format: ['email', 'ldap', 'saml'] as const,
|
format: ['email', 'ldap', 'saml'] as const,
|
||||||
|
@ -691,6 +697,19 @@ export const schema = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @important Do not remove until after cloud hooks are updated to stop using convict config.
|
||||||
|
*/
|
||||||
|
endpoints: {
|
||||||
|
rest: {
|
||||||
|
format: String,
|
||||||
|
default: Container.get(GlobalConfig).endpoints.rest,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @important Do not remove until after cloud hooks are updated to stop using convict config.
|
||||||
|
*/
|
||||||
ai: {
|
ai: {
|
||||||
enabled: {
|
enabled: {
|
||||||
doc: 'Whether AI features are enabled',
|
doc: 'Whether AI features are enabled',
|
||||||
|
|
Loading…
Reference in a new issue