Umgebungsvariablen zum Anpassen von Endpunkten in n8n auf

This page lists environment variables for customizing endpoints in n8n.

VariableTypeDefaultDescription
N8N_PAYLOAD_SIZE_MAXNumber16The maximum payload size in MiB.
N8N_FORMDATA_FILE_SIZE_MAXNumber200Max payload size for files in form-data webhook payloads in MiB.
N8N_METRICSBooleanfalseWhether to enable the /metrics endpoint.
N8N_METRICS_PREFIXStringn8n_Optional prefix for n8n specific metrics names.
N8N_METRICS_INCLUDE_DEFAULT_METRICSBooleantrueWhether to expose default system and node.js metrics.
N8N_METRICS_INCLUDE_CACHE_METRICSBooleanfalseWhether to include metrics (true) for cache hits and misses, or not include them (false).
N8N_METRICS_INCLUDE_MESSAGE_EVENT_BUS_METRICSBooleanfalseWhether to include metrics (true) for events, or not include them (false).
N8N_METRICS_INCLUDE_WORKFLOW_ID_LABELBooleanfalseWhether to include a label for the workflow ID on workflow metrics.
N8N_METRICS_INCLUDE_NODE_TYPE_LABELBooleanfalseWhether to include a label for the node type on node metrics.
N8N_METRICS_INCLUDE_CREDENTIAL_TYPE_LABELBooleanfalseWhether to include a label for the credential type on credential metrics.
N8N_METRICS_INCLUDE_API_ENDPOINTSBooleanfalseWhether to expose metrics for API endpoints.
N8N_METRICS_INCLUDE_API_PATH_LABELBooleanfalseWhether to include a label for the path of API invocations.
N8N_METRICS_INCLUDE_API_METHOD_LABELBooleanfalseWhether to include a label for the HTTP method (GET, POST, …) of API invocations.
N8N_METRICS_INCLUDE_API_STATUS_CODE_LABELBooleanfalseWhether to include a label for the HTTP status code (200, 404, …) of API invocations.
N8N_METRICS_INCLUDE_QUEUE_METRICSBooleanfalseWhether to include metrics for jobs in scaling mode.
N8N_METRICS_QUEUE_METRICS_INTERVALInteger20How often (in seconds) to update queue metrics.
N8N_ENDPOINT_RESTStringrestThe path used for REST endpoint.
N8N_ENDPOINT_WEBHOOKStringwebhookThe path used for webhook endpoint.
N8N_ENDPOINT_WEBHOOK_TESTStringwebhook-testThe path used for test-webhook endpoint.
N8N_ENDPOINT_WEBHOOK_WAITStringwebhook-waitingThe path used for waiting-webhook endpoint.
WEBHOOK_URLStringUsed to manually provide the Webhook URL when running n8n behind a reverse proxy. See here for more details.
N8N_DISABLE_PRODUCTION_MAIN_PROCESSBooleanfalseDisable production webhooks from main process. This helps ensure no HTTP traffic load to main process when using webhook-specific processes.
Nach oben scrollen