From 91cdab2798bed9f8b7e69cb8ba4267a7d725c221 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 9 Nov 2021 13:44:26 +0100 Subject: [PATCH] client_max_body_size in the nginx configuration. --- defaults/main.yml | 2 ++ templates/nginx.default.conf.j2 | 3 +++ 2 files changed, 5 insertions(+) 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;