Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core): Mark schema env vars used by cloud hooks (no-changelog) #10283

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/cli/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Container } from 'typedi';
import { InstanceSettings } from 'n8n-core';
import { LOG_LEVELS } from 'n8n-workflow';
import { ensureStringArray } from './utils';
import { GlobalConfig } from '@n8n/config';

convict.addFormat({
name: 'comma-separated-list',
Expand Down Expand Up @@ -381,12 +382,17 @@ export const schema = {
default: 0,
env: 'N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS',
},

/**
* @important Do not remove until after cloud hooks are updated to stop using convict config.
*/
isInstanceOwnerSetUp: {
// n8n loads this setting from DB on startup
doc: "Whether the instance owner's account has been set up",
format: Boolean,
default: false,
},

authenticationMethod: {
doc: 'How to authenticate users (e.g. "email", "ldap", "saml")',
format: ['email', 'ldap', 'saml'] as const,
Expand Down Expand Up @@ -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: {
enabled: {
doc: 'Whether AI features are enabled',
Expand Down
Loading