Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ ability to specify a custom index file name when serving static files.
</para>
</change>

<change type="feature">
<para>
added new "header_buffer_size", "large_header_buffer_size",
"large_header_buffers", "proxy_buffer_size", "proxy_header_buffer_size",
"proxy_timeout", "proxy_send_timeout" and "proxy_read_timeout" options for
"settings.http".
</para>
</change>

<change type="feature">
<para>
variables support in the "location" option of the "return" action.
Expand Down
24 changes: 24 additions & 0 deletions src/nxt_conf_validation.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,36 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_http_members[] = {
}, {
.name = nxt_string("max_body_size"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("header_buffer_size"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("large_header_buffer_size"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("large_header_buffers"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("body_temp_path"),
.type = NXT_CONF_VLDT_STRING,
}, {
.name = nxt_string("discard_unsafe_fields"),
.type = NXT_CONF_VLDT_BOOLEAN,
}, {
.name = nxt_string("proxy_buffer_size"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("proxy_header_buffer_size"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("proxy_timeout"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("proxy_send_timeout"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("proxy_read_timeout"),
.type = NXT_CONF_VLDT_INTEGER,
}, {
.name = nxt_string("websocket"),
.type = NXT_CONF_VLDT_OBJECT,
Expand Down
30 changes: 30 additions & 0 deletions src/nxt_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,36 @@ static nxt_conf_map_t nxt_router_http_conf[] = {
NXT_CONF_MAP_INT8,
offsetof(nxt_socket_conf_t, discard_unsafe_fields),
},

{
nxt_string("proxy_buffer_size"),
NXT_CONF_MAP_SIZE,
offsetof(nxt_socket_conf_t, proxy_buffer_size),
},

{
nxt_string("proxy_header_buffer_size"),
NXT_CONF_MAP_SIZE,
offsetof(nxt_socket_conf_t, proxy_header_buffer_size),
},

{
nxt_string("proxy_timeout"),
NXT_CONF_MAP_MSEC,
offsetof(nxt_socket_conf_t, proxy_timeout),
},

{
nxt_string("proxy_send_timeout"),
NXT_CONF_MAP_MSEC,
offsetof(nxt_socket_conf_t, proxy_send_timeout),
},

{
nxt_string("proxy_read_timeout"),
NXT_CONF_MAP_MSEC,
offsetof(nxt_socket_conf_t, proxy_read_timeout),
},
};


Expand Down