Add annotation for client-body-buffer-size per location
Adds an annotation which allows for client-body-buffer-size to be configured per specific locations specified in the ingress resource yaml.
This commit is contained in:
parent
7010627c4c
commit
e9ffbf0f87
9 changed files with 165 additions and 17 deletions
|
|
@ -549,6 +549,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;
|
||||
|
|
@ -615,6 +618,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