Skip to content

Commit

Permalink
Added client_max_body_size to authPath location
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Olve Sæther Hansen committed Jun 2, 2017
1 parent 4c868cf commit d4600a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d4600a8

Please sign in to comment.