be consistent with what Nginx supports
This commit is contained in:
parent
ccd7b890fd
commit
4eabd535f9
3 changed files with 32 additions and 20 deletions
|
|
@ -980,10 +980,10 @@ stream {
|
|||
proxy_http_version 1.1;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass_request_headers on;
|
||||
{{ if isValidByteSize $location.Proxy.BodySize }}
|
||||
{{ if isValidByteSize $location.Proxy.BodySize true }}
|
||||
client_max_body_size {{ $location.Proxy.BodySize }};
|
||||
{{ end }}
|
||||
{{ if isValidByteSize $location.ClientBodyBufferSize }}
|
||||
{{ if isValidByteSize $location.ClientBodyBufferSize false }}
|
||||
client_body_buffer_size {{ $location.ClientBodyBufferSize }};
|
||||
{{ end }}
|
||||
|
||||
|
|
@ -1197,10 +1197,10 @@ stream {
|
|||
}
|
||||
{{ end }}
|
||||
|
||||
{{ if isValidByteSize $location.Proxy.BodySize }}
|
||||
{{ if isValidByteSize $location.Proxy.BodySize true }}
|
||||
client_max_body_size {{ $location.Proxy.BodySize }};
|
||||
{{ end }}
|
||||
{{ if isValidByteSize $location.ClientBodyBufferSize }}
|
||||
{{ if isValidByteSize $location.ClientBodyBufferSize false }}
|
||||
client_body_buffer_size {{ $location.ClientBodyBufferSize }};
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue