Add max payload configuration

This commit is contained in:
Harshil 2021-04-09 14:32:22 +02:00
parent 9a0b15e2a1
commit 853de8f7bb

View File

@ -254,8 +254,7 @@ export WEBHOOK_TUNNEL_URL=https://n8n.example.com/
## Prometheus
In order to collect and expose metrics, n8n uses the
[prom-client](https://www.npmjs.com/package/prom-client) library.
In order to collect and expose metrics, n8n uses the [prom-client](https://www.npmjs.com/package/prom-client) library.
The `/metrics` endpoint is disabled by default, but it is possible to enable it using the `N8N_METRICS` environment variable.
@ -280,6 +279,15 @@ It is also possible to set default values for credentials. These credentials get
export CREDENTIALS_OVERWRITE_DATA={CREDENTIAL_NAME:{ PARAMATER: Value }}
```
## Maximum payload limit
The default maximum incoming payload limit is **16MB**. To increase the maximum payload limit use, the following format.
```bash
export N8N_PAYLOAD_SIZE_MAX=VALUE
```
The value is in MB. For example, if you want to set the limit to 32MB, use `N8N_PAYLOAD_SIZE_MAX=32`.
## Configuration via file