From d4600a87b5fb6276ad310f3bfac5ae112269039e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olve=20S=C3=A6ther=20Hansen?= Date: Fri, 2 Jun 2017 22:40:29 +0200 Subject: [PATCH] Added client_max_body_size to authPath location Seems like nginx denies the request because it would be over the max body size, event if `proxy_pass_request_body` is `off`. This fixes 811 --- controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index 5c2c9c7d7..55dde3f4e 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -327,6 +327,9 @@ http { proxy_set_header Host {{ $location.ExternalAuth.Host }}; proxy_ssl_server_name on; + client_max_body_size "{{ $location.Proxy.BodySize }}"; + + set $target {{ $location.ExternalAuth.URL }}; proxy_pass $target; }