Update manual pages
This commit is contained in:
parent
ef3066a1bd
commit
002073ef57
37
doc/h2load.1
37
doc/h2load.1
|
@ -1,6 +1,6 @@
|
||||||
.\" Man page generated from reStructuredText.
|
.\" Man page generated from reStructuredText.
|
||||||
.
|
.
|
||||||
.TH "H2LOAD" "1" "Jul 18, 2021" "1.45.0-DEV" "nghttp2"
|
.TH "H2LOAD" "1" "Aug 31, 2021" "1.45.0-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
h2load \- HTTP/2 benchmarking tool
|
h2load \- HTTP/2 benchmarking tool
|
||||||
.
|
.
|
||||||
|
@ -101,6 +101,7 @@ Default: \fB1\fP
|
||||||
.TP
|
.TP
|
||||||
.B \-w, \-\-window\-bits=<N>
|
.B \-w, \-\-window\-bits=<N>
|
||||||
Sets the stream level initial window size to (2**<N>)\-1.
|
Sets the stream level initial window size to (2**<N>)\-1.
|
||||||
|
For QUIC, <N> is capped to 26 (roughly 64MiB).
|
||||||
.sp
|
.sp
|
||||||
Default: \fB30\fP
|
Default: \fB30\fP
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
@ -120,13 +121,21 @@ Add/Override a header to the requests.
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
.B \-\-ciphers=<SUITE>
|
.B \-\-ciphers=<SUITE>
|
||||||
Set allowed cipher list. The format of the string is
|
Set allowed cipher list for TLSv1.2 or ealier. The
|
||||||
described in OpenSSL ciphers(1).
|
format of the string is described in OpenSSL ciphers(1).
|
||||||
.sp
|
.sp
|
||||||
Default: \fBECDHE\-ECDSA\-AES256\-GCM\-SHA384:ECDHE\-RSA\-AES256\-GCM\-SHA384:ECDHE\-ECDSA\-CHACHA20\-POLY1305:ECDHE\-RSA\-CHACHA20\-POLY1305:ECDHE\-ECDSA\-AES128\-GCM\-SHA256:ECDHE\-RSA\-AES128\-GCM\-SHA256:ECDHE\-ECDSA\-AES256\-SHA384:ECDHE\-RSA\-AES256\-SHA384:ECDHE\-ECDSA\-AES128\-SHA256:ECDHE\-RSA\-AES128\-SHA256\fP
|
Default: \fBECDHE\-ECDSA\-AES256\-GCM\-SHA384:ECDHE\-RSA\-AES256\-GCM\-SHA384:ECDHE\-ECDSA\-CHACHA20\-POLY1305:ECDHE\-RSA\-CHACHA20\-POLY1305:ECDHE\-ECDSA\-AES128\-GCM\-SHA256:ECDHE\-RSA\-AES128\-GCM\-SHA256:ECDHE\-ECDSA\-AES256\-SHA384:ECDHE\-RSA\-AES256\-SHA384:ECDHE\-ECDSA\-AES128\-SHA256:ECDHE\-RSA\-AES128\-SHA256\fP
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-tls13\-ciphers=<SUITE>
|
||||||
|
Set allowed cipher list for TLSv1.3. The format of the
|
||||||
|
string is described in OpenSSL ciphers(1).
|
||||||
|
.sp
|
||||||
|
Default: \fBTLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
.B \-p, \-\-no\-tls\-proto=<PROTOID>
|
.B \-p, \-\-no\-tls\-proto=<PROTOID>
|
||||||
Specify ALPN identifier of the protocol to be used when
|
Specify ALPN identifier of the protocol to be used when
|
||||||
accessing http URI without SSL/TLS.
|
accessing http URI without SSL/TLS.
|
||||||
|
@ -285,6 +294,16 @@ to buffering. Status code is \-1 for failed streams.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-qlog\-file\-base=<PATH>
|
||||||
|
Enable qlog output and specify base file name for qlogs.
|
||||||
|
Qlog is emitted for each connection.
|
||||||
|
For a given base name "base", each output file name
|
||||||
|
becomes "base.M.N.qlog" where M is worker ID and N is
|
||||||
|
client ID (e.g. "base.0.3.qlog").
|
||||||
|
Only effective in QUIC runs.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
.B \-\-connect\-to=<HOST>[:<PORT>]
|
.B \-\-connect\-to=<HOST>[:<PORT>]
|
||||||
Host and port to connect instead of using the authority
|
Host and port to connect instead of using the authority
|
||||||
in <URI>.
|
in <URI>.
|
||||||
|
@ -297,6 +316,18 @@ Specify request per second for each client. \fI\%\-\-rps\fP and
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-groups=<GROUPS>
|
||||||
|
Specify the supported groups.
|
||||||
|
.sp
|
||||||
|
Default: \fBX25519:P\-256:P\-384:P\-521\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-no\-udp\-gso
|
||||||
|
Disable UDP GSO.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
.B \-v, \-\-verbose
|
.B \-v, \-\-verbose
|
||||||
Output debug information.
|
Output debug information.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
|
|
@ -76,6 +76,7 @@ OPTIONS
|
||||||
.. option:: -w, --window-bits=<N>
|
.. option:: -w, --window-bits=<N>
|
||||||
|
|
||||||
Sets the stream level initial window size to (2\*\*<N>)-1.
|
Sets the stream level initial window size to (2\*\*<N>)-1.
|
||||||
|
For QUIC, <N> is capped to 26 (roughly 64MiB).
|
||||||
|
|
||||||
Default: ``30``
|
Default: ``30``
|
||||||
|
|
||||||
|
@ -92,11 +93,18 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: --ciphers=<SUITE>
|
.. option:: --ciphers=<SUITE>
|
||||||
|
|
||||||
Set allowed cipher list. The format of the string is
|
Set allowed cipher list for TLSv1.2 or ealier. The
|
||||||
described in OpenSSL ciphers(1).
|
format of the string is described in OpenSSL ciphers(1).
|
||||||
|
|
||||||
Default: ``ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256``
|
Default: ``ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256``
|
||||||
|
|
||||||
|
.. option:: --tls13-ciphers=<SUITE>
|
||||||
|
|
||||||
|
Set allowed cipher list for TLSv1.3. The format of the
|
||||||
|
string is described in OpenSSL ciphers(1).
|
||||||
|
|
||||||
|
Default: ``TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256``
|
||||||
|
|
||||||
.. option:: -p, --no-tls-proto=<PROTOID>
|
.. option:: -p, --no-tls-proto=<PROTOID>
|
||||||
|
|
||||||
Specify ALPN identifier of the protocol to be used when
|
Specify ALPN identifier of the protocol to be used when
|
||||||
|
@ -240,6 +248,15 @@ OPTIONS
|
||||||
appear slightly out of order with multiple threads due
|
appear slightly out of order with multiple threads due
|
||||||
to buffering. Status code is -1 for failed streams.
|
to buffering. Status code is -1 for failed streams.
|
||||||
|
|
||||||
|
.. option:: --qlog-file-base=<PATH>
|
||||||
|
|
||||||
|
Enable qlog output and specify base file name for qlogs.
|
||||||
|
Qlog is emitted for each connection.
|
||||||
|
For a given base name "base", each output file name
|
||||||
|
becomes "base.M.N.qlog" where M is worker ID and N is
|
||||||
|
client ID (e.g. "base.0.3.qlog").
|
||||||
|
Only effective in QUIC runs.
|
||||||
|
|
||||||
.. option:: --connect-to=<HOST>[:<PORT>]
|
.. option:: --connect-to=<HOST>[:<PORT>]
|
||||||
|
|
||||||
Host and port to connect instead of using the authority
|
Host and port to connect instead of using the authority
|
||||||
|
@ -250,6 +267,16 @@ OPTIONS
|
||||||
Specify request per second for each client. :option:`--rps` and
|
Specify request per second for each client. :option:`--rps` and
|
||||||
:option:`--timing-script-file` are mutually exclusive.
|
:option:`--timing-script-file` are mutually exclusive.
|
||||||
|
|
||||||
|
.. option:: --groups=<GROUPS>
|
||||||
|
|
||||||
|
Specify the supported groups.
|
||||||
|
|
||||||
|
Default: ``X25519:P-256:P-384:P-521``
|
||||||
|
|
||||||
|
.. option:: --no-udp-gso
|
||||||
|
|
||||||
|
Disable UDP GSO.
|
||||||
|
|
||||||
.. option:: -v, --verbose
|
.. option:: -v, --verbose
|
||||||
|
|
||||||
Output debug information.
|
Output debug information.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" Man page generated from reStructuredText.
|
.\" Man page generated from reStructuredText.
|
||||||
.
|
.
|
||||||
.TH "NGHTTP" "1" "Jul 18, 2021" "1.45.0-DEV" "nghttp2"
|
.TH "NGHTTP" "1" "Aug 31, 2021" "1.45.0-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttp \- HTTP/2 client
|
nghttp \- HTTP/2 client
|
||||||
.
|
.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" Man page generated from reStructuredText.
|
.\" Man page generated from reStructuredText.
|
||||||
.
|
.
|
||||||
.TH "NGHTTPD" "1" "Jul 18, 2021" "1.45.0-DEV" "nghttp2"
|
.TH "NGHTTPD" "1" "Aug 31, 2021" "1.45.0-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttpd \- HTTP/2 server
|
nghttpd \- HTTP/2 server
|
||||||
.
|
.
|
||||||
|
|
129
doc/nghttpx.1
129
doc/nghttpx.1
|
@ -1,6 +1,6 @@
|
||||||
.\" Man page generated from reStructuredText.
|
.\" Man page generated from reStructuredText.
|
||||||
.
|
.
|
||||||
.TH "NGHTTPX" "1" "Jul 18, 2021" "1.45.0-DEV" "nghttp2"
|
.TH "NGHTTPX" "1" "Aug 31, 2021" "1.45.0-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttpx \- HTTP/2 proxy
|
nghttpx \- HTTP/2 proxy
|
||||||
.
|
.
|
||||||
|
@ -140,12 +140,13 @@ parameters are: "proto=<PROTO>", "tls",
|
||||||
"affinity=<METHOD>", "dns", "redirect\-if\-not\-tls",
|
"affinity=<METHOD>", "dns", "redirect\-if\-not\-tls",
|
||||||
"upgrade\-scheme", "mruby=<PATH>",
|
"upgrade\-scheme", "mruby=<PATH>",
|
||||||
"read\-timeout=<DURATION>", "write\-timeout=<DURATION>",
|
"read\-timeout=<DURATION>", "write\-timeout=<DURATION>",
|
||||||
"group=<GROUP>", "group\-weight=<N>", and "weight=<N>".
|
"group=<GROUP>", "group\-weight=<N>", "weight=<N>", and
|
||||||
The parameter consists of keyword, and optionally
|
"dnf". The parameter consists of keyword, and
|
||||||
followed by "=" and value. For example, the parameter
|
optionally followed by "=" and value. For example, the
|
||||||
"proto=h2" consists of the keyword "proto" and value
|
parameter "proto=h2" consists of the keyword "proto" and
|
||||||
"h2". The parameter "tls" consists of the keyword "tls"
|
value "h2". The parameter "tls" consists of the keyword
|
||||||
without value. Each parameter is described as follows.
|
"tls" without value. Each parameter is described as
|
||||||
|
follows.
|
||||||
.sp
|
.sp
|
||||||
The backend application protocol can be specified using
|
The backend application protocol can be specified using
|
||||||
optional "proto" parameter, and in the form of
|
optional "proto" parameter, and in the form of
|
||||||
|
@ -276,6 +277,13 @@ weight than weight 2. If this parameter is omitted,
|
||||||
weight becomes 1. "weight" is ignored if session
|
weight becomes 1. "weight" is ignored if session
|
||||||
affinity is enabled.
|
affinity is enabled.
|
||||||
.sp
|
.sp
|
||||||
|
If "dnf" parameter is specified, an incoming request is
|
||||||
|
not forwarded to a backend and just consumed along with
|
||||||
|
the request body (actually a backend server never be
|
||||||
|
contacted). It is expected that the HTTP response is
|
||||||
|
generated by mruby script (see "mruby=<PATH>" parameter
|
||||||
|
above). "dnf" is an abbreviation of "do not forward".
|
||||||
|
.sp
|
||||||
Since ";" and ":" are used as delimiter, <PATTERN> must
|
Since ";" and ":" are used as delimiter, <PATTERN> must
|
||||||
not contain these characters. In order to include ":"
|
not contain these characters. In order to include ":"
|
||||||
in <PATTERN>, one has to specify "%3A" (which is
|
in <PATTERN>, one has to specify "%3A" (which is
|
||||||
|
@ -323,6 +331,12 @@ To accept PROXY protocol version 1 and 2 on frontend
|
||||||
connection, specify "proxyproto" parameter. This is
|
connection, specify "proxyproto" parameter. This is
|
||||||
disabled by default.
|
disabled by default.
|
||||||
.sp
|
.sp
|
||||||
|
To receive HTTP/3 (QUIC) traffic, specify "quic"
|
||||||
|
parameter. It makes nghttpx listen on UDP port rather
|
||||||
|
than TCP port. UNIX domain socket, "api", and
|
||||||
|
"healthmon" parameters cannot be used with "quic"
|
||||||
|
parameter.
|
||||||
|
.sp
|
||||||
Default: \fB*,3000\fP
|
Default: \fB*,3000\fP
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
|
@ -528,6 +542,13 @@ Default: \fB3m\fP
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-read\-timeout=<DURATION>
|
||||||
|
Specify read timeout for HTTP/3 frontend connection.
|
||||||
|
.sp
|
||||||
|
Default: \fB3m\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
.B \-\-frontend\-read\-timeout=<DURATION>
|
.B \-\-frontend\-read\-timeout=<DURATION>
|
||||||
Specify read timeout for HTTP/1.1 frontend connection.
|
Specify read timeout for HTTP/1.1 frontend connection.
|
||||||
.sp
|
.sp
|
||||||
|
@ -1478,13 +1499,21 @@ not be altered regardless of this option.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
.B \-\-altsvc=<PROTOID,PORT[,HOST,[ORIGIN]]>
|
.B \-\-altsvc=<PROTOID,PORT[,HOST,[ORIGIN[,PARAMS]]]>
|
||||||
Specify protocol ID, port, host and origin of
|
Specify protocol ID, port, host and origin of
|
||||||
alternative service. <HOST> and <ORIGIN> are optional.
|
alternative service. <HOST>, <ORIGIN> and <PARAMS> are
|
||||||
They are advertised in alt\-svc header field only in
|
optional. Empty <HOST> and <ORIGIN> are allowed and
|
||||||
HTTP/1.1 frontend. This option can be used multiple
|
they are treated as nothing is specified. They are
|
||||||
times to specify multiple alternative services.
|
advertised in alt\-svc header field only in HTTP/1.1
|
||||||
Example: \fI\%\-\-altsvc\fP=h2,443
|
frontend. This option can be used multiple times to
|
||||||
|
specify multiple alternative services.
|
||||||
|
Example: \fI\%\-\-altsvc\fP="h2,443,,,ma=3600; persist=1\(aq
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-http2\-altsvc=<PROTOID,PORT[,HOST,[ORIGIN[,PARAMS]]]>
|
||||||
|
Just like \fI\%\-\-altsvc\fP option, but this altsvc is only sent
|
||||||
|
in HTTP/2 frontend.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
@ -1688,6 +1717,80 @@ Ignore mruby compile error for per\-pattern mruby script
|
||||||
file. If error occurred, it is treated as if no mruby
|
file. If error occurred, it is treated as if no mruby
|
||||||
file were specified for the pattern.
|
file were specified for the pattern.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
.SS HTTP/3 and QUIC
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-quic\-idle\-timeout=<DURATION>
|
||||||
|
Specify an idle timeout for QUIC connection.
|
||||||
|
.sp
|
||||||
|
Default: \fB30s\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-quic\-debug\-log
|
||||||
|
Output QUIC debug log to \fI/dev/stderr.\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-quic\-bpf\-program\-file=<PATH>
|
||||||
|
Specify a path to eBPF program file reuseport_kern.o to
|
||||||
|
direct an incoming QUIC UDP datagram to a correct
|
||||||
|
socket.
|
||||||
|
.sp
|
||||||
|
Default: \fB/usr/local/lib/nghttp2/reuseport_kern.o\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-no\-quic\-bpf
|
||||||
|
Disable eBPF.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-window\-size=<SIZE>
|
||||||
|
Sets the per\-stream initial window size of HTTP/3
|
||||||
|
frontend connection.
|
||||||
|
.sp
|
||||||
|
Default: \fB256K\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-connection\-window\-size=<SIZE>
|
||||||
|
Sets the per\-connection window size of HTTP/3 frontend
|
||||||
|
connection.
|
||||||
|
.sp
|
||||||
|
Default: \fB1M\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-max\-window\-size=<SIZE>
|
||||||
|
Sets the maximum per\-stream window size of HTTP/3
|
||||||
|
frontend connection. The window size is adjusted based
|
||||||
|
on the receiving rate of stream data. The initial value
|
||||||
|
is the value specified by \fI\%\-\-frontend\-http3\-window\-size\fP
|
||||||
|
and the window size grows up to <SIZE> bytes.
|
||||||
|
.sp
|
||||||
|
Default: \fB6M\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-max\-connection\-window\-size=<SIZE>
|
||||||
|
Sets the maximum per\-connection window size of HTTP/3
|
||||||
|
frontend connection. The window size is adjusted based
|
||||||
|
on the receiving rate of stream data. The initial value
|
||||||
|
is the value specified by
|
||||||
|
\fI\%\-\-frontend\-http3\-connection\-window\-size\fP and the window
|
||||||
|
size grows up to <SIZE> bytes.
|
||||||
|
.sp
|
||||||
|
Default: \fB8M\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-\-frontend\-http3\-max\-concurrent\-streams=<N>
|
||||||
|
Set the maximum number of the concurrent streams in one
|
||||||
|
frontend HTTP/3 connection.
|
||||||
|
.sp
|
||||||
|
Default: \fB100\fP
|
||||||
|
.UNINDENT
|
||||||
.SS Misc
|
.SS Misc
|
||||||
.INDENT 0.0
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -124,12 +124,13 @@ Connections
|
||||||
"affinity=<METHOD>", "dns", "redirect-if-not-tls",
|
"affinity=<METHOD>", "dns", "redirect-if-not-tls",
|
||||||
"upgrade-scheme", "mruby=<PATH>",
|
"upgrade-scheme", "mruby=<PATH>",
|
||||||
"read-timeout=<DURATION>", "write-timeout=<DURATION>",
|
"read-timeout=<DURATION>", "write-timeout=<DURATION>",
|
||||||
"group=<GROUP>", "group-weight=<N>", and "weight=<N>".
|
"group=<GROUP>", "group-weight=<N>", "weight=<N>", and
|
||||||
The parameter consists of keyword, and optionally
|
"dnf". The parameter consists of keyword, and
|
||||||
followed by "=" and value. For example, the parameter
|
optionally followed by "=" and value. For example, the
|
||||||
"proto=h2" consists of the keyword "proto" and value
|
parameter "proto=h2" consists of the keyword "proto" and
|
||||||
"h2". The parameter "tls" consists of the keyword "tls"
|
value "h2". The parameter "tls" consists of the keyword
|
||||||
without value. Each parameter is described as follows.
|
"tls" without value. Each parameter is described as
|
||||||
|
follows.
|
||||||
|
|
||||||
The backend application protocol can be specified using
|
The backend application protocol can be specified using
|
||||||
optional "proto" parameter, and in the form of
|
optional "proto" parameter, and in the form of
|
||||||
|
@ -260,6 +261,13 @@ Connections
|
||||||
weight becomes 1. "weight" is ignored if session
|
weight becomes 1. "weight" is ignored if session
|
||||||
affinity is enabled.
|
affinity is enabled.
|
||||||
|
|
||||||
|
If "dnf" parameter is specified, an incoming request is
|
||||||
|
not forwarded to a backend and just consumed along with
|
||||||
|
the request body (actually a backend server never be
|
||||||
|
contacted). It is expected that the HTTP response is
|
||||||
|
generated by mruby script (see "mruby=<PATH>" parameter
|
||||||
|
above). "dnf" is an abbreviation of "do not forward".
|
||||||
|
|
||||||
Since ";" and ":" are used as delimiter, <PATTERN> must
|
Since ";" and ":" are used as delimiter, <PATTERN> must
|
||||||
not contain these characters. In order to include ":"
|
not contain these characters. In order to include ":"
|
||||||
in <PATTERN>, one has to specify "%3A" (which is
|
in <PATTERN>, one has to specify "%3A" (which is
|
||||||
|
@ -307,6 +315,12 @@ Connections
|
||||||
connection, specify "proxyproto" parameter. This is
|
connection, specify "proxyproto" parameter. This is
|
||||||
disabled by default.
|
disabled by default.
|
||||||
|
|
||||||
|
To receive HTTP/3 (QUIC) traffic, specify "quic"
|
||||||
|
parameter. It makes nghttpx listen on UDP port rather
|
||||||
|
than TCP port. UNIX domain socket, "api", and
|
||||||
|
"healthmon" parameters cannot be used with "quic"
|
||||||
|
parameter.
|
||||||
|
|
||||||
|
|
||||||
Default: ``*,3000``
|
Default: ``*,3000``
|
||||||
|
|
||||||
|
@ -495,6 +509,12 @@ Timeout
|
||||||
|
|
||||||
Default: ``3m``
|
Default: ``3m``
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-read-timeout=<DURATION>
|
||||||
|
|
||||||
|
Specify read timeout for HTTP/3 frontend connection.
|
||||||
|
|
||||||
|
Default: ``3m``
|
||||||
|
|
||||||
.. option:: --frontend-read-timeout=<DURATION>
|
.. option:: --frontend-read-timeout=<DURATION>
|
||||||
|
|
||||||
Specify read timeout for HTTP/1.1 frontend connection.
|
Specify read timeout for HTTP/1.1 frontend connection.
|
||||||
|
@ -1338,14 +1358,21 @@ HTTP
|
||||||
mode. When :option:`--http2-proxy` is used, these headers will
|
mode. When :option:`--http2-proxy` is used, these headers will
|
||||||
not be altered regardless of this option.
|
not be altered regardless of this option.
|
||||||
|
|
||||||
.. option:: --altsvc=<PROTOID,PORT[,HOST,[ORIGIN]]>
|
.. option:: --altsvc=<PROTOID,PORT[,HOST,[ORIGIN[,PARAMS]]]>
|
||||||
|
|
||||||
Specify protocol ID, port, host and origin of
|
Specify protocol ID, port, host and origin of
|
||||||
alternative service. <HOST> and <ORIGIN> are optional.
|
alternative service. <HOST>, <ORIGIN> and <PARAMS> are
|
||||||
They are advertised in alt-svc header field only in
|
optional. Empty <HOST> and <ORIGIN> are allowed and
|
||||||
HTTP/1.1 frontend. This option can be used multiple
|
they are treated as nothing is specified. They are
|
||||||
times to specify multiple alternative services.
|
advertised in alt-svc header field only in HTTP/1.1
|
||||||
Example: :option:`--altsvc`\=h2,443
|
frontend. This option can be used multiple times to
|
||||||
|
specify multiple alternative services.
|
||||||
|
Example: :option:`--altsvc`\="h2,443,,,ma=3600; persist=1'
|
||||||
|
|
||||||
|
.. option:: --http2-altsvc=<PROTOID,PORT[,HOST,[ORIGIN[,PARAMS]]]>
|
||||||
|
|
||||||
|
Just like :option:`--altsvc` option, but this altsvc is only sent
|
||||||
|
in HTTP/2 frontend.
|
||||||
|
|
||||||
.. option:: --add-request-header=<HEADER>
|
.. option:: --add-request-header=<HEADER>
|
||||||
|
|
||||||
|
@ -1541,6 +1568,74 @@ Scripting
|
||||||
file were specified for the pattern.
|
file were specified for the pattern.
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/3 and QUIC
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. option:: --frontend-quic-idle-timeout=<DURATION>
|
||||||
|
|
||||||
|
Specify an idle timeout for QUIC connection.
|
||||||
|
|
||||||
|
Default: ``30s``
|
||||||
|
|
||||||
|
.. option:: --frontend-quic-debug-log
|
||||||
|
|
||||||
|
Output QUIC debug log to */dev/stderr.*
|
||||||
|
|
||||||
|
.. option:: --quic-bpf-program-file=<PATH>
|
||||||
|
|
||||||
|
Specify a path to eBPF program file reuseport_kern.o to
|
||||||
|
direct an incoming QUIC UDP datagram to a correct
|
||||||
|
socket.
|
||||||
|
|
||||||
|
Default: ``/usr/local/lib/nghttp2/reuseport_kern.o``
|
||||||
|
|
||||||
|
.. option:: --no-quic-bpf
|
||||||
|
|
||||||
|
Disable eBPF.
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-window-size=<SIZE>
|
||||||
|
|
||||||
|
Sets the per-stream initial window size of HTTP/3
|
||||||
|
frontend connection.
|
||||||
|
|
||||||
|
Default: ``256K``
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-connection-window-size=<SIZE>
|
||||||
|
|
||||||
|
Sets the per-connection window size of HTTP/3 frontend
|
||||||
|
connection.
|
||||||
|
|
||||||
|
Default: ``1M``
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-max-window-size=<SIZE>
|
||||||
|
|
||||||
|
Sets the maximum per-stream window size of HTTP/3
|
||||||
|
frontend connection. The window size is adjusted based
|
||||||
|
on the receiving rate of stream data. The initial value
|
||||||
|
is the value specified by :option:`--frontend-http3-window-size`
|
||||||
|
and the window size grows up to <SIZE> bytes.
|
||||||
|
|
||||||
|
Default: ``6M``
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-max-connection-window-size=<SIZE>
|
||||||
|
|
||||||
|
Sets the maximum per-connection window size of HTTP/3
|
||||||
|
frontend connection. The window size is adjusted based
|
||||||
|
on the receiving rate of stream data. The initial value
|
||||||
|
is the value specified by
|
||||||
|
:option:`--frontend-http3-connection-window-size` and the window
|
||||||
|
size grows up to <SIZE> bytes.
|
||||||
|
|
||||||
|
Default: ``8M``
|
||||||
|
|
||||||
|
.. option:: --frontend-http3-max-concurrent-streams=<N>
|
||||||
|
|
||||||
|
Set the maximum number of the concurrent streams in one
|
||||||
|
frontend HTTP/3 connection.
|
||||||
|
|
||||||
|
Default: ``100``
|
||||||
|
|
||||||
|
|
||||||
Misc
|
Misc
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue