client_max_body_size in the nginx configuration.

This commit is contained in:
Andrea Dell'Amico 2021-11-09 13:44:26 +01:00
parent f2f7ead713
commit 91cdab2798
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 0 deletions

View File

@ -74,3 +74,5 @@ pep_replicas: 1
# hostnames to be used as vhosts
#pep_credentials: in vault
nginx_pep_debug_enabled: False
nginx_pep_max_body_size: 500M
nginx_pep_body_timeout: 60s

View File

@ -32,6 +32,9 @@ server {
# Required for new HTTP-based CLI
proxy_request_buffering off;
client_max_body_size {{ nginx_pep_max_body_size }};
client_body_timeout {{ nginx_pep_body_timeout }};
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;