refactor(core): Port endpoints config (no-changelog) (#10268)
This commit is contained in:
@@ -355,149 +355,6 @@ export const schema = {
|
||||
},
|
||||
},
|
||||
|
||||
endpoints: {
|
||||
payloadSizeMax: {
|
||||
format: Number,
|
||||
default: 16,
|
||||
env: 'N8N_PAYLOAD_SIZE_MAX',
|
||||
doc: 'Maximum payload size in MB.',
|
||||
},
|
||||
metrics: {
|
||||
enable: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS',
|
||||
doc: 'Enable /metrics endpoint. Default: false',
|
||||
},
|
||||
prefix: {
|
||||
format: String,
|
||||
default: 'n8n_',
|
||||
env: 'N8N_METRICS_PREFIX',
|
||||
doc: 'An optional prefix for metric names. Default: n8n_',
|
||||
},
|
||||
includeDefaultMetrics: {
|
||||
format: Boolean,
|
||||
default: true,
|
||||
env: 'N8N_METRICS_INCLUDE_DEFAULT_METRICS',
|
||||
doc: 'Whether to expose default system and node.js metrics. Default: true',
|
||||
},
|
||||
includeWorkflowIdLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_WORKFLOW_ID_LABEL',
|
||||
doc: 'Whether to include a label for the workflow ID on workflow metrics. Default: false',
|
||||
},
|
||||
includeNodeTypeLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_NODE_TYPE_LABEL',
|
||||
doc: 'Whether to include a label for the node type on node metrics. Default: false',
|
||||
},
|
||||
includeCredentialTypeLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_CREDENTIAL_TYPE_LABEL',
|
||||
doc: 'Whether to include a label for the credential type on credential metrics. Default: false',
|
||||
},
|
||||
includeApiEndpoints: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_API_ENDPOINTS',
|
||||
doc: 'Whether to expose metrics for API endpoints. Default: false',
|
||||
},
|
||||
includeApiPathLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_API_PATH_LABEL',
|
||||
doc: 'Whether to include a label for the path of API invocations. Default: false',
|
||||
},
|
||||
includeApiMethodLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_API_METHOD_LABEL',
|
||||
doc: 'Whether to include a label for the HTTP method (GET, POST, ...) of API invocations. Default: false',
|
||||
},
|
||||
includeApiStatusCodeLabel: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_API_STATUS_CODE_LABEL',
|
||||
doc: 'Whether to include a label for the HTTP status code (200, 404, ...) of API invocations. Default: false',
|
||||
},
|
||||
includeCacheMetrics: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_METRICS_INCLUDE_CACHE_METRICS',
|
||||
doc: 'Whether to include metrics for cache hits and misses. Default: false',
|
||||
},
|
||||
includeMessageEventBusMetrics: {
|
||||
format: Boolean,
|
||||
default: true,
|
||||
env: 'N8N_METRICS_INCLUDE_MESSAGE_EVENT_BUS_METRICS',
|
||||
doc: 'Whether to include metrics for events. Default: false',
|
||||
},
|
||||
},
|
||||
rest: {
|
||||
format: String,
|
||||
default: 'rest',
|
||||
env: 'N8N_ENDPOINT_REST',
|
||||
doc: 'Path for rest endpoint',
|
||||
},
|
||||
form: {
|
||||
format: String,
|
||||
default: 'form',
|
||||
env: 'N8N_ENDPOINT_FORM',
|
||||
doc: 'Path for form endpoint',
|
||||
},
|
||||
formTest: {
|
||||
format: String,
|
||||
default: 'form-test',
|
||||
env: 'N8N_ENDPOINT_FORM_TEST',
|
||||
doc: 'Path for test form endpoint',
|
||||
},
|
||||
formWaiting: {
|
||||
format: String,
|
||||
default: 'form-waiting',
|
||||
env: 'N8N_ENDPOINT_FORM_WAIT',
|
||||
doc: 'Path for waiting form endpoint',
|
||||
},
|
||||
webhook: {
|
||||
format: String,
|
||||
default: 'webhook',
|
||||
env: 'N8N_ENDPOINT_WEBHOOK',
|
||||
doc: 'Path for webhook endpoint',
|
||||
},
|
||||
webhookWaiting: {
|
||||
format: String,
|
||||
default: 'webhook-waiting',
|
||||
env: 'N8N_ENDPOINT_WEBHOOK_WAIT',
|
||||
doc: 'Path for waiting-webhook endpoint',
|
||||
},
|
||||
webhookTest: {
|
||||
format: String,
|
||||
default: 'webhook-test',
|
||||
env: 'N8N_ENDPOINT_WEBHOOK_TEST',
|
||||
doc: 'Path for test-webhook endpoint',
|
||||
},
|
||||
disableUi: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_DISABLE_UI',
|
||||
doc: 'Disable N8N UI (Frontend).',
|
||||
},
|
||||
disableProductionWebhooksOnMainProcess: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_DISABLE_PRODUCTION_MAIN_PROCESS',
|
||||
doc: 'Disable production webhooks from main process. This helps ensures no http traffic load to main process when using webhook-specific processes.',
|
||||
},
|
||||
additionalNonUIRoutes: {
|
||||
doc: 'Additional endpoints to not open the UI on. Multiple endpoints can be separated by colon (":")',
|
||||
format: String,
|
||||
default: '',
|
||||
env: 'N8N_ADDITIONAL_NON_UI_ROUTES',
|
||||
},
|
||||
},
|
||||
|
||||
workflowTagsDisabled: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
|
||||
Reference in New Issue
Block a user