Merge pull request #1186 from diazjf/client-body-buffer-size
Add annotation for client-body-buffer-size per location
This commit is contained in:
commit
9863140b8c
9 changed files with 165 additions and 17 deletions
|
|
@ -555,6 +555,9 @@ stream {
|
|||
proxy_ssl_server_name on;
|
||||
|
||||
client_max_body_size "{{ $location.Proxy.BodySize }}";
|
||||
{{ if $location.ClientBodyBufferSize }}
|
||||
client_body_buffer_size {{ $location.ClientBodyBufferSize }};
|
||||
{{ end }}
|
||||
|
||||
set $target {{ $location.ExternalAuth.URL }};
|
||||
proxy_pass $target;
|
||||
|
|
@ -621,6 +624,9 @@ stream {
|
|||
{{ end }}
|
||||
|
||||
client_max_body_size "{{ $location.Proxy.BodySize }}";
|
||||
{{ if $location.ClientBodyBufferSize }}
|
||||
client_body_buffer_size {{ $location.ClientBodyBufferSize }};
|
||||
{{ end }}
|
||||
|
||||
proxy_set_header Host $best_http_host;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue