diff --git a/defaults/main.yml b/defaults/main.yml index 463cac8..ef6caf7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/nginx.default.conf.j2 b/templates/nginx.default.conf.j2 index c463304..44bdd19 100644 --- a/templates/nginx.default.conf.j2 +++ b/templates/nginx.default.conf.j2 @@ -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;