diff --git a/docs/hosting/configuration/environment-variables/workflow-history.md b/docs/hosting/configuration/environment-variables/workflow-history.md new file mode 100644 index 000000000..126d2b9dc --- /dev/null +++ b/docs/hosting/configuration/environment-variables/workflow-history.md @@ -0,0 +1,16 @@ +--- +title: Workflow history environment variables +description: Environment variables to configure workflow history in n8n. +contentType: reference +tags: + - environment variables +hide: + - toc + - tags +--- + +# Workflow history environment variables + +| Variable | Type | Default | Description | +| :------- | :---- | :------- | :---------- | +| `N8N_WORKFLOW_HISTORY_PRUNE_TIME` | Number | `-1` | How long to keep workflow history versions before automatically deleting them (in hours). Set to `-1` to keep all versions indefinitely. | \ No newline at end of file diff --git a/nav.yml b/nav.yml index 860ee7d91..8793c562a 100644 --- a/nav.yml +++ b/nav.yml @@ -1220,6 +1220,7 @@ nav: - Timezone and localization: hosting/configuration/environment-variables/timezone-localization.md - User management and 2FA: hosting/configuration/environment-variables/user-management-smtp-2fa.md - Workflows: hosting/configuration/environment-variables/workflows.md + - Workflow history: hosting/configuration/environment-variables/workflow-history.md - Configuration methods: hosting/configuration/configuration-methods.md - Configuration examples: - hosting/configuration/configuration-examples/index.md