mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Stream: deprecated proxy_downstream_buffer, proxy_upstream_buffer.
The directive proxy_buffer_size should be used instead.
This commit is contained in:
parent
96507dabcc
commit
29cebe5d63
@ -96,6 +96,15 @@ static ngx_conf_bitmask_t ngx_stream_proxy_ssl_protocols[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
static ngx_conf_deprecated_t ngx_conf_deprecated_proxy_downstream_buffer = {
|
||||||
|
ngx_conf_deprecated, "proxy_downstream_buffer", "proxy_buffer_size"
|
||||||
|
};
|
||||||
|
|
||||||
|
static ngx_conf_deprecated_t ngx_conf_deprecated_proxy_upstream_buffer = {
|
||||||
|
ngx_conf_deprecated, "proxy_upstream_buffer", "proxy_buffer_size"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
static ngx_command_t ngx_stream_proxy_commands[] = {
|
static ngx_command_t ngx_stream_proxy_commands[] = {
|
||||||
|
|
||||||
{ ngx_string("proxy_pass"),
|
{ ngx_string("proxy_pass"),
|
||||||
@ -133,6 +142,20 @@ static ngx_command_t ngx_stream_proxy_commands[] = {
|
|||||||
offsetof(ngx_stream_proxy_srv_conf_t, buffer_size),
|
offsetof(ngx_stream_proxy_srv_conf_t, buffer_size),
|
||||||
NULL },
|
NULL },
|
||||||
|
|
||||||
|
{ ngx_string("proxy_downstream_buffer"),
|
||||||
|
NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
|
||||||
|
ngx_conf_set_size_slot,
|
||||||
|
NGX_STREAM_SRV_CONF_OFFSET,
|
||||||
|
offsetof(ngx_stream_proxy_srv_conf_t, buffer_size),
|
||||||
|
&ngx_conf_deprecated_proxy_downstream_buffer },
|
||||||
|
|
||||||
|
{ ngx_string("proxy_upstream_buffer"),
|
||||||
|
NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
|
||||||
|
ngx_conf_set_size_slot,
|
||||||
|
NGX_STREAM_SRV_CONF_OFFSET,
|
||||||
|
offsetof(ngx_stream_proxy_srv_conf_t, buffer_size),
|
||||||
|
&ngx_conf_deprecated_proxy_upstream_buffer },
|
||||||
|
|
||||||
{ ngx_string("proxy_upload_rate"),
|
{ ngx_string("proxy_upload_rate"),
|
||||||
NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
|
NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
|
||||||
ngx_conf_set_size_slot,
|
ngx_conf_set_size_slot,
|
||||||
|
Loading…
Reference in New Issue
Block a user