From b33676be78c1adbfc0fbd95b5cbfb07baf26b570 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:22:42 -0500 Subject: [PATCH] update reference.json (#302) Co-authored-by: ryepup <40441+ryepup@users.noreply.github.com> --- reference-lib/package-lock.json | 4 ++-- reference-lib/package.json | 2 +- reference-lib/src/reference.json | 26 +++++++++++++------------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/reference-lib/package-lock.json b/reference-lib/package-lock.json index ac47533..5a1041d 100644 --- a/reference-lib/package-lock.json +++ b/reference-lib/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nginx/reference-lib", - "version": "1.1.5", + "version": "1.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nginx/reference-lib", - "version": "1.1.5", + "version": "1.1.6", "license": "Apache-2.0", "devDependencies": { "@rollup/plugin-json": "^6.1.0", diff --git a/reference-lib/package.json b/reference-lib/package.json index c6198f5..07c5545 100644 --- a/reference-lib/package.json +++ b/reference-lib/package.json @@ -1,6 +1,6 @@ { "name": "@nginx/reference-lib", - "version": "1.1.5", + "version": "1.1.6", "description": "", "main": "dist/index.js", "type": "module", diff --git a/reference-lib/src/reference.json b/reference-lib/src/reference.json index b570162..8264dfe 100644 --- a/reference-lib/src/reference.json +++ b/reference-lib/src/reference.json @@ -9504,8 +9504,8 @@ "

address [parameters]

\n" ], "isBlock": false, - "description_md": "Defines the *`address`* and other *`parameters`*\nof a server.\nThe address can be specified as a domain name or IP address,\nwith an optional port, or as a UNIX-domain socket path\nspecified after the “`unix:`” prefix.\nIf a port is not specified, the port 80 is used.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.\n\nThe following parameters can be defined:\n- `weight`=*`number`*\n\n sets the weight of the server, by default, 1.\n- `max_conns`=*`number`*\n\n limits the maximum *`number`* of simultaneous active\n connections to the proxied server (1.11.5).\n Default value is zero, meaning there is no limit.\n If the server group does not reside in the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone),\n the limitation works per each worker process.\n > If [idle keepalive](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive) connections,\n > multiple [workers](https://nginx.org/en/docs/ngx_core_module.html#worker_processes),\n > and the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone) are enabled,\n > the total number of active and idle connections to the proxied server\n > may exceed the `max_conns` value.\n \n > Since version 1.5.9 and prior to version 1.11.5,\n > this parameter was available as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `max_fails`=*`number`*\n\n sets the number of unsuccessful attempts to communicate with the server\n that should happen in the duration set by the `fail_timeout`\n parameter to consider the server unavailable for a duration also set by the\n `fail_timeout` parameter.\n By default, the number of unsuccessful attempts is set to 1.\n The zero value disables the accounting of attempts.\n What is considered an unsuccessful attempt is defined by the\n [`proxy_next_upstream`](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream),\n [`fastcgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_next_upstream),\n [`uwsgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_uwsgi_module.html#uwsgi_next_upstream),\n [`scgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_scgi_module.html#scgi_next_upstream),\n [`memcached_next_upstream`](https://nginx.org/en/docs/http/ngx_http_memcached_module.html#memcached_next_upstream), and\n [`grpc_next_upstream`](https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_next_upstream)\n directives.\n- `fail_timeout`=*`time`*\n\n sets\n - the time during which the specified number of unsuccessful attempts to\n communicate with the server should happen to consider the server unavailable;\n - and the period of time the server will be considered unavailable.\n \n By default, the parameter is set to 10 seconds.\n- `backup`\n\n marks the server as a backup server.\n It will be passed requests when the primary servers are unavailable.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash), [`ip_hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash), and [`random`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#random)\n > load balancing methods.\n- `down`\n\n marks the server as permanently unavailable.\n\nAdditionally,\nthe following parameters are available as part of our\n[commercial subscription](https://nginx.com/products/):\n- `resolve`\n\n monitors changes of the IP addresses\n that correspond to a domain name of the server,\n and automatically modifies the upstream configuration\n without the need of restarting nginx (1.5.12).\n The server group must reside in the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone).\n \n In order for this parameter to work,\n the `resolver` directive\n must be specified in the\n [http](https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) block\n or in the corresponding [upstream](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#resolver) block.\n- `route`=*`string`*\n\n sets the server route name.\n- `service`=*`name`*\n\n enables resolving of DNS\n [SRV](https://datatracker.ietf.org/doc/html/rfc2782)\n records and sets the service *`name`* (1.9.13).\n In order for this parameter to work, it is necessary to specify\n the [`resolve`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#resolve) parameter for the server\n and specify a hostname without a port number.\n \n If the service name does not contain a dot (“`.`”), then\n the [RFC](https://datatracker.ietf.org/doc/html/rfc2782)-compliant name\n is constructed\n and the TCP protocol is added to the service prefix.\n For example, to look up the\n `_http._tcp.backend.example.com` SRV record,\n it is necessary to specify the directive:\n ```\n server backend.example.com service=http resolve;\n ```\n If the service name contains one or more dots, then the name is constructed\n by joining the service prefix and the server name.\n For example, to look up the `_http._tcp.backend.example.com`\n and `server1.backend.example.com` SRV records,\n it is necessary to specify the directives:\n ```\n server backend.example.com service=_http._tcp resolve;\n server example.com service=server1.backend resolve;\n ```\n \n \n \n Highest-priority SRV records\n (records with the same lowest-number priority value)\n are resolved as primary servers,\n the rest of SRV records are resolved as backup servers.\n If the [`backup`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#backup) parameter is specified for the server,\n high-priority SRV records are resolved as backup servers,\n the rest of SRV records are ignored.\n- `slow_start`=*`time`*\n\n sets the *`time`* during which the server will recover its weight\n from zero to a nominal value, when unhealthy server becomes\n [healthy](https://nginx.org/en/docs/http/ngx_http_upstream_hc_module.html#health_check),\n or when the server becomes available after a period of time\n it was considered [unavailable](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#fail_timeout).\n Default value is zero, i.e. slow start is disabled.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash), [`ip_hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash), and [`random`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#random)\n > load balancing methods.\n- `drain`\n\n puts the server into the “draining” mode (1.13.6).\n In this mode, only requests [bound](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky) to the server\n will be proxied to it.\n > Prior to version 1.13.6,\n > the parameter could be changed only with the\n > [API](https://nginx.org/en/docs/http/ngx_http_api_module.html) module.\n\n> If there is only a single server in a group, `max_fails`,\n> `fail_timeout` and `slow_start` parameters\n> are ignored, and such a server will never be considered unavailable.", - "description_html": "

Defines the address and other parameters\nof a server.\nThe address can be specified as a domain name or IP address,\nwith an optional port, or as a UNIX-domain socket path\nspecified after the “unix:” prefix.\nIf a port is not specified, the port 80 is used.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.

\n\n

The following parameters can be defined:

\n\n\n\n

Additionally,\nthe following parameters are available as part of our\ncommercial subscription:

\n\n\n\n
\n

If there is only a single server in a group, max_fails,\nfail_timeout and slow_start parameters\nare ignored, and such a server will never be considered unavailable.

\n
\n" + "description_md": "Defines the *`address`* and other *`parameters`*\nof a server.\nThe address can be specified as a domain name or IP address,\nwith an optional port, or as a UNIX-domain socket path\nspecified after the “`unix:`” prefix.\nIf a port is not specified, the port 80 is used.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.\n\nThe following parameters can be defined:\n- `weight`=*`number`*\n\n sets the weight of the server, by default, 1.\n- `max_conns`=*`number`*\n\n limits the maximum *`number`* of simultaneous active\n connections to the proxied server (1.11.5).\n Default value is zero, meaning there is no limit.\n If the server group does not reside in the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone),\n the limitation works per each worker process.\n > If [idle keepalive](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive) connections,\n > multiple [workers](https://nginx.org/en/docs/ngx_core_module.html#worker_processes),\n > and the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone) are enabled,\n > the total number of active and idle connections to the proxied server\n > may exceed the `max_conns` value.\n \n > Since version 1.5.9 and prior to version 1.11.5,\n > this parameter was available as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `max_fails`=*`number`*\n\n sets the number of unsuccessful attempts to communicate with the server\n that should happen in the duration set by the `fail_timeout`\n parameter to consider the server unavailable for a duration also set by the\n `fail_timeout` parameter.\n By default, the number of unsuccessful attempts is set to 1.\n The zero value disables the accounting of attempts.\n What is considered an unsuccessful attempt is defined by the\n [`proxy_next_upstream`](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream),\n [`fastcgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_next_upstream),\n [`uwsgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_uwsgi_module.html#uwsgi_next_upstream),\n [`scgi_next_upstream`](https://nginx.org/en/docs/http/ngx_http_scgi_module.html#scgi_next_upstream),\n [`memcached_next_upstream`](https://nginx.org/en/docs/http/ngx_http_memcached_module.html#memcached_next_upstream), and\n [`grpc_next_upstream`](https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_next_upstream)\n directives.\n- `fail_timeout`=*`time`*\n\n sets\n - the time during which the specified number of unsuccessful attempts to\n communicate with the server should happen to consider the server unavailable;\n - and the period of time the server will be considered unavailable.\n \n By default, the parameter is set to 10 seconds.\n- `backup`\n\n marks the server as a backup server.\n It will be passed requests when the primary servers are unavailable.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash), [`ip_hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash), and [`random`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#random)\n > load balancing methods.\n- `down`\n\n marks the server as permanently unavailable.\n- `resolve`\n\n monitors changes of the IP addresses\n that correspond to a domain name of the server,\n and automatically modifies the upstream configuration\n without the need of restarting nginx (1.5.12).\n The server group must reside in the [shared memory](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone).\n \n In order for this parameter to work,\n the `resolver` directive\n must be specified in the\n [http](https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) block\n or in the corresponding [upstream](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#resolver) block.\n \n \n \n > Prior to version 1.27.3, this parameter was available only as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `service`=*`name`*\n\n enables resolving of DNS\n [SRV](https://datatracker.ietf.org/doc/html/rfc2782)\n records and sets the service *`name`* (1.9.13).\n In order for this parameter to work, it is necessary to specify\n the [`resolve`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#resolve) parameter for the server\n and specify a hostname without a port number.\n \n If the service name does not contain a dot (“`.`”), then\n the [RFC](https://datatracker.ietf.org/doc/html/rfc2782)-compliant name\n is constructed\n and the TCP protocol is added to the service prefix.\n For example, to look up the\n `_http._tcp.backend.example.com` SRV record,\n it is necessary to specify the directive:\n ```\n server backend.example.com service=http resolve;\n ```\n If the service name contains one or more dots, then the name is constructed\n by joining the service prefix and the server name.\n For example, to look up the `_http._tcp.backend.example.com`\n and `server1.backend.example.com` SRV records,\n it is necessary to specify the directives:\n ```\n server backend.example.com service=_http._tcp resolve;\n server example.com service=server1.backend resolve;\n ```\n \n \n \n Highest-priority SRV records\n (records with the same lowest-number priority value)\n are resolved as primary servers,\n the rest of SRV records are resolved as backup servers.\n If the [`backup`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#backup) parameter is specified for the server,\n high-priority SRV records are resolved as backup servers,\n the rest of SRV records are ignored.\n \n \n \n > Prior to version 1.27.3, this parameter was available only as part of our\n > [commercial subscription](https://nginx.com/products/).\n\nAdditionally,\nthe following parameters are available as part of our\n[commercial subscription](https://nginx.com/products/):\n- `route`=*`string`*\n\n sets the server route name.\n- `slow_start`=*`time`*\n\n sets the *`time`* during which the server will recover its weight\n from zero to a nominal value, when unhealthy server becomes\n [healthy](https://nginx.org/en/docs/http/ngx_http_upstream_hc_module.html#health_check),\n or when the server becomes available after a period of time\n it was considered [unavailable](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#fail_timeout).\n Default value is zero, i.e. slow start is disabled.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash), [`ip_hash`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash), and [`random`](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#random)\n > load balancing methods.\n- `drain`\n\n puts the server into the “draining” mode (1.13.6).\n In this mode, only requests [bound](https://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky) to the server\n will be proxied to it.\n > Prior to version 1.13.6,\n > the parameter could be changed only with the\n > [API](https://nginx.org/en/docs/http/ngx_http_api_module.html) module.\n\n> If there is only a single server in a group, `max_fails`,\n> `fail_timeout` and `slow_start` parameters\n> are ignored, and such a server will never be considered unavailable.", + "description_html": "

Defines the address and other parameters\nof a server.\nThe address can be specified as a domain name or IP address,\nwith an optional port, or as a UNIX-domain socket path\nspecified after the “unix:” prefix.\nIf a port is not specified, the port 80 is used.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.

\n\n

The following parameters can be defined:

\n\n\n\n

Additionally,\nthe following parameters are available as part of our\ncommercial subscription:

\n\n\n\n
\n

If there is only a single server in a group, max_fails,\nfail_timeout and slow_start parameters\nare ignored, and such a server will never be considered unavailable.

\n
\n" }, { "name": "zone", @@ -9728,8 +9728,8 @@ "

address … [valid=time] [ipv4=on|off] [ipv6=on|off] [status_zone=zone]

\n" ], "isBlock": false, - "description_md": "Configures name servers used to resolve names of upstream servers\ninto addresses, for example:\n```\nresolver 127.0.0.1 [::1]:5353;\n```\nThe address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.\n\nBy default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe `ipv4=off` (1.23.1) or\nthe `ipv6=off` parameter can be specified.\n\nBy default, nginx caches answers using the TTL value of a response.\nAn optional `valid` parameter allows overriding it:\n```\nresolver 127.0.0.1 [::1]:5353 valid=30s;\n```\n> To prevent DNS spoofing, it is recommended\n> configuring DNS servers in a properly secured trusted local network.\n\nThe optional `status_zone` parameter\nenables\n[collection](https://nginx.org/en/docs/http/ngx_http_api_module.html#resolvers_)\nof DNS server statistics of requests and responses\nin the specified *`zone`*.\n\n> This directive is available as part of our\n> [commercial subscription](https://nginx.com/products/).", - "description_html": "

Configures name servers used to resolve names of upstream servers\ninto addresses, for example:

\n\n
resolver 127.0.0.1 [::1]:5353;\n
\n\n

The address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.

\n\n

By default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe ipv4=off (1.23.1) or\nthe ipv6=off parameter can be specified.

\n\n

By default, nginx caches answers using the TTL value of a response.\nAn optional valid parameter allows overriding it:

\n\n
resolver 127.0.0.1 [::1]:5353 valid=30s;\n
\n\n
\n

To prevent DNS spoofing, it is recommended\nconfiguring DNS servers in a properly secured trusted local network.

\n
\n\n

The optional status_zone parameter\nenables\ncollection\nof DNS server statistics of requests and responses\nin the specified zone.

\n\n
\n

This directive is available as part of our\ncommercial subscription.

\n
\n" + "description_md": "Configures name servers used to resolve names of upstream servers\ninto addresses, for example:\n```\nresolver 127.0.0.1 [::1]:5353;\n```\nThe address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.\n\nBy default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe `ipv4=off` (1.23.1) or\nthe `ipv6=off` parameter can be specified.\n\nBy default, nginx caches answers using the TTL value of a response.\nAn optional `valid` parameter allows overriding it:\n```\nresolver 127.0.0.1 [::1]:5353 valid=30s;\n```\n> To prevent DNS spoofing, it is recommended\n> configuring DNS servers in a properly secured trusted local network.\n\nThe optional `status_zone` parameter (1.17.5)\nenables\n[collection](https://nginx.org/en/docs/http/ngx_http_api_module.html#resolvers_)\nof DNS server statistics of requests and responses\nin the specified *`zone`*.\nThe parameter is available as part of our\n[commercial subscription](https://nginx.com/products/).\n\n> Since version 1.17.5 and prior to version 1.27.3,\n> this directive was available only as part of our\n> [commercial subscription](https://nginx.com/products/).", + "description_html": "

Configures name servers used to resolve names of upstream servers\ninto addresses, for example:

\n\n
resolver 127.0.0.1 [::1]:5353;\n
\n\n

The address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.

\n\n

By default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe ipv4=off (1.23.1) or\nthe ipv6=off parameter can be specified.

\n\n

By default, nginx caches answers using the TTL value of a response.\nAn optional valid parameter allows overriding it:

\n\n
resolver 127.0.0.1 [::1]:5353 valid=30s;\n
\n\n
\n

To prevent DNS spoofing, it is recommended\nconfiguring DNS servers in a properly secured trusted local network.

\n
\n\n

The optional status_zone parameter (1.17.5)\nenables\ncollection\nof DNS server statistics of requests and responses\nin the specified zone.\nThe parameter is available as part of our\ncommercial subscription.

\n\n
\n

Since version 1.17.5 and prior to version 1.27.3,\nthis directive was available only as part of our\ncommercial subscription.

\n
\n" }, { "name": "resolver_timeout", @@ -9744,8 +9744,8 @@ "

time

\n" ], "isBlock": false, - "description_md": "Sets a timeout for name resolution, for example:\n```\nresolver_timeout 5s;\n```\n\n> This directive is available as part of our\n> [commercial subscription](https://nginx.com/products/).", - "description_html": "

Sets a timeout for name resolution, for example:

\n\n
resolver_timeout 5s;\n
\n\n
\n

This directive is available as part of our\ncommercial subscription.

\n
\n" + "description_md": "Sets a timeout for name resolution, for example:\n```\nresolver_timeout 5s;\n```\n\n> Since version 1.17.5 and prior to version 1.27.3,\n> this directive was available only as part of our\n> [commercial subscription](https://nginx.com/products/).", + "description_html": "

Sets a timeout for name resolution, for example:

\n\n
resolver_timeout 5s;\n
\n\n
\n

Since version 1.17.5 and prior to version 1.27.3,\nthis directive was available only as part of our\ncommercial subscription.

\n
\n" }, { "name": "sticky", @@ -15858,8 +15858,8 @@ "

address [parameters]

\n" ], "isBlock": false, - "description_md": "Defines the *`address`* and other *`parameters`*\nof a server.\nThe address can be specified as a domain name or IP address\nwith an obligatory port, or as a UNIX-domain socket path\nspecified after the “`unix:`” prefix.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.\n\nThe following parameters can be defined:\n- `weight`=*`number`*\n\n sets the weight of the server, by default, 1.\n- `max_conns`=*`number`*\n\n limits the maximum *`number`* of simultaneous\n connections to the proxied server (1.11.5).\n Default value is zero, meaning there is no limit.\n If the server group does not reside in the [shared memory](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#zone),\n the limitation works per each worker process.\n > Prior to version 1.11.5, this parameter was available as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `max_fails`=*`number`*\n\n sets the number of unsuccessful attempts to communicate with the server\n that should happen in the duration set by the `fail_timeout`\n parameter to consider the server unavailable for a duration also set by the\n `fail_timeout` parameter.\n By default, the number of unsuccessful attempts is set to 1.\n The zero value disables the accounting of attempts.\n Here, an unsuccessful attempt is an error or timeout\n while establishing a connection with the server.\n- `fail_timeout`=*`time`*\n\n sets\n - the time during which the specified number of unsuccessful attempts to\n communicate with the server should happen to consider the server unavailable;\n - and the period of time the server will be considered unavailable.\n \n By default, the parameter is set to 10 seconds.\n- `backup`\n\n marks the server as a backup server.\n Connections to the backup server will be passed\n when the primary servers are unavailable.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#hash) and [`random`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#random) load balancing methods.\n- `down`\n\n marks the server as permanently unavailable.\n\nAdditionally,\nthe following parameters are available as part of our\n[commercial subscription](https://nginx.com/products/):\n- `resolve`\n\n monitors changes of the IP addresses\n that correspond to a domain name of the server,\n and automatically modifies the upstream configuration\n without the need of restarting nginx.\n The server group must reside in the [shared memory](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#zone).\n \n In order for this parameter to work,\n the `resolver` directive\n must be specified in the\n [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#resolver) block\n or in the corresponding [upstream](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#resolver) block.\n- `service`=*`name`*\n\n enables resolving of DNS\n [SRV](https://datatracker.ietf.org/doc/html/rfc2782)\n records and sets the service *`name`* (1.9.13).\n In order for this parameter to work, it is necessary to specify\n the [`resolve`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#resolve) parameter for the server\n and specify a hostname without a port number.\n \n If the service name does not contain a dot (“`.`”), then\n the [RFC](https://datatracker.ietf.org/doc/html/rfc2782)-compliant name\n is constructed\n and the TCP protocol is added to the service prefix.\n For example, to look up the\n `_http._tcp.backend.example.com` SRV record,\n it is necessary to specify the directive:\n ```\n server backend.example.com service=http resolve;\n ```\n If the service name contains one or more dots, then the name is constructed\n by joining the service prefix and the server name.\n For example, to look up the `_http._tcp.backend.example.com`\n and `server1.backend.example.com` SRV records,\n it is necessary to specify the directives:\n ```\n server backend.example.com service=_http._tcp resolve;\n server example.com service=server1.backend resolve;\n ```\n \n \n \n Highest-priority SRV records\n (records with the same lowest-number priority value)\n are resolved as primary servers,\n the rest of SRV records are resolved as backup servers.\n If the [`backup`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#backup) parameter is specified for the server,\n high-priority SRV records are resolved as backup servers,\n the rest of SRV records are ignored.\n- `slow_start`=*`time`*\n\n sets the *`time`* during which the server will recover its weight\n from zero to a nominal value, when unhealthy server becomes\n [healthy](https://nginx.org/en/docs/stream/ngx_stream_upstream_hc_module.html#health_check),\n or when the server becomes available after a period of time\n it was considered [unavailable](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#fail_timeout).\n Default value is zero, i.e. slow start is disabled.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#hash) and [`random`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#random) load balancing methods.\n\n> If there is only a single server in a group, `max_fails`,\n> `fail_timeout` and `slow_start` parameters\n> are ignored, and such a server will never be considered unavailable.", - "description_html": "

Defines the address and other parameters\nof a server.\nThe address can be specified as a domain name or IP address\nwith an obligatory port, or as a UNIX-domain socket path\nspecified after the “unix:” prefix.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.

\n\n

The following parameters can be defined:

\n\n\n\n

Additionally,\nthe following parameters are available as part of our\ncommercial subscription:

\n\n\n\n
\n

If there is only a single server in a group, max_fails,\nfail_timeout and slow_start parameters\nare ignored, and such a server will never be considered unavailable.

\n
\n" + "description_md": "Defines the *`address`* and other *`parameters`*\nof a server.\nThe address can be specified as a domain name or IP address\nwith an obligatory port, or as a UNIX-domain socket path\nspecified after the “`unix:`” prefix.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.\n\nThe following parameters can be defined:\n- `weight`=*`number`*\n\n sets the weight of the server, by default, 1.\n- `max_conns`=*`number`*\n\n limits the maximum *`number`* of simultaneous\n connections to the proxied server (1.11.5).\n Default value is zero, meaning there is no limit.\n If the server group does not reside in the [shared memory](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#zone),\n the limitation works per each worker process.\n > Prior to version 1.11.5, this parameter was available as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `max_fails`=*`number`*\n\n sets the number of unsuccessful attempts to communicate with the server\n that should happen in the duration set by the `fail_timeout`\n parameter to consider the server unavailable for a duration also set by the\n `fail_timeout` parameter.\n By default, the number of unsuccessful attempts is set to 1.\n The zero value disables the accounting of attempts.\n Here, an unsuccessful attempt is an error or timeout\n while establishing a connection with the server.\n- `fail_timeout`=*`time`*\n\n sets\n - the time during which the specified number of unsuccessful attempts to\n communicate with the server should happen to consider the server unavailable;\n - and the period of time the server will be considered unavailable.\n \n By default, the parameter is set to 10 seconds.\n- `backup`\n\n marks the server as a backup server.\n Connections to the backup server will be passed\n when the primary servers are unavailable.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#hash) and [`random`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#random) load balancing methods.\n- `down`\n\n marks the server as permanently unavailable.\n- `resolve`\n\n monitors changes of the IP addresses\n that correspond to a domain name of the server,\n and automatically modifies the upstream configuration\n without the need of restarting nginx.\n The server group must reside in the [shared memory](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#zone).\n \n In order for this parameter to work,\n the `resolver` directive\n must be specified in the\n [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#resolver) block\n or in the corresponding [upstream](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#resolver) block.\n \n \n \n > Prior to version 1.27.3, this parameter was available only as part of our\n > [commercial subscription](https://nginx.com/products/).\n- `service`=*`name`*\n\n enables resolving of DNS\n [SRV](https://datatracker.ietf.org/doc/html/rfc2782)\n records and sets the service *`name`* (1.9.13).\n In order for this parameter to work, it is necessary to specify\n the [`resolve`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#resolve) parameter for the server\n and specify a hostname without a port number.\n \n If the service name does not contain a dot (“`.`”), then\n the [RFC](https://datatracker.ietf.org/doc/html/rfc2782)-compliant name\n is constructed\n and the TCP protocol is added to the service prefix.\n For example, to look up the\n `_http._tcp.backend.example.com` SRV record,\n it is necessary to specify the directive:\n ```\n server backend.example.com service=http resolve;\n ```\n If the service name contains one or more dots, then the name is constructed\n by joining the service prefix and the server name.\n For example, to look up the `_http._tcp.backend.example.com`\n and `server1.backend.example.com` SRV records,\n it is necessary to specify the directives:\n ```\n server backend.example.com service=_http._tcp resolve;\n server example.com service=server1.backend resolve;\n ```\n \n \n \n Highest-priority SRV records\n (records with the same lowest-number priority value)\n are resolved as primary servers,\n the rest of SRV records are resolved as backup servers.\n If the [`backup`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#backup) parameter is specified for the server,\n high-priority SRV records are resolved as backup servers,\n the rest of SRV records are ignored.\n \n \n \n > Prior to version 1.27.3, this parameter was available only as part of our\n > [commercial subscription](https://nginx.com/products/).\n\nAdditionally,\nthe following parameters are available as part of our\n[commercial subscription](https://nginx.com/products/):\n- `slow_start`=*`time`*\n\n sets the *`time`* during which the server will recover its weight\n from zero to a nominal value, when unhealthy server becomes\n [healthy](https://nginx.org/en/docs/stream/ngx_stream_upstream_hc_module.html#health_check),\n or when the server becomes available after a period of time\n it was considered [unavailable](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#fail_timeout).\n Default value is zero, i.e. slow start is disabled.\n > The parameter cannot be used along with the\n > [`hash`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#hash) and [`random`](https://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#random) load balancing methods.\n\n> If there is only a single server in a group, `max_fails`,\n> `fail_timeout` and `slow_start` parameters\n> are ignored, and such a server will never be considered unavailable.", + "description_html": "

Defines the address and other parameters\nof a server.\nThe address can be specified as a domain name or IP address\nwith an obligatory port, or as a UNIX-domain socket path\nspecified after the “unix:” prefix.\nA domain name that resolves to several IP addresses defines\nmultiple servers at once.

\n\n

The following parameters can be defined:

\n\n\n\n

Additionally,\nthe following parameters are available as part of our\ncommercial subscription:

\n\n\n\n
\n

If there is only a single server in a group, max_fails,\nfail_timeout and slow_start parameters\nare ignored, and such a server will never be considered unavailable.

\n
\n" }, { "name": "zone", @@ -15970,8 +15970,8 @@ "

address … [valid=time] [ipv4=on|off] [ipv6=on|off] [status_zone=zone]

\n" ], "isBlock": false, - "description_md": "Configures name servers used to resolve names of upstream servers\ninto addresses, for example:\n```\nresolver 127.0.0.1 [::1]:5353;\n```\nThe address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.\n\nBy default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe `ipv4=off` (1.23.1) or\nthe `ipv6=off` parameter can be specified.\n\nBy default, nginx caches answers using the TTL value of a response.\nThe optional `valid` parameter allows overriding it:\n```\nresolver 127.0.0.1 [::1]:5353 valid=30s;\n```\n> To prevent DNS spoofing, it is recommended\n> configuring DNS servers in a properly secured trusted local network.\n\nThe optional `status_zone` parameter\nenables\n[collection](https://nginx.org/en/docs/http/ngx_http_api_module.html#resolvers_)\nof DNS server statistics of requests and responses\nin the specified *`zone`*.\n\n> This directive is available as part of our\n> [commercial subscription](https://nginx.com/products/).", - "description_html": "

Configures name servers used to resolve names of upstream servers\ninto addresses, for example:

\n\n
resolver 127.0.0.1 [::1]:5353;\n
\n\n

The address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.

\n\n

By default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe ipv4=off (1.23.1) or\nthe ipv6=off parameter can be specified.

\n\n

By default, nginx caches answers using the TTL value of a response.\nThe optional valid parameter allows overriding it:

\n\n
resolver 127.0.0.1 [::1]:5353 valid=30s;\n
\n\n
\n

To prevent DNS spoofing, it is recommended\nconfiguring DNS servers in a properly secured trusted local network.

\n
\n\n

The optional status_zone parameter\nenables\ncollection\nof DNS server statistics of requests and responses\nin the specified zone.

\n\n
\n

This directive is available as part of our\ncommercial subscription.

\n
\n" + "description_md": "Configures name servers used to resolve names of upstream servers\ninto addresses, for example:\n```\nresolver 127.0.0.1 [::1]:5353;\n```\nThe address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.\n\nBy default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe `ipv4=off` (1.23.1) or\nthe `ipv6=off` parameter can be specified.\n\nBy default, nginx caches answers using the TTL value of a response.\nThe optional `valid` parameter allows overriding it:\n```\nresolver 127.0.0.1 [::1]:5353 valid=30s;\n```\n> To prevent DNS spoofing, it is recommended\n> configuring DNS servers in a properly secured trusted local network.\n\nThe optional `status_zone` parameter (1.17.5)\nenables\n[collection](https://nginx.org/en/docs/http/ngx_http_api_module.html#resolvers_)\nof DNS server statistics of requests and responses\nin the specified *`zone`*.\nThe parameter is available as part of our\n[commercial subscription](https://nginx.com/products/).\n\n> Since version 1.17.5 and prior to version 1.27.3,\n> this directive was available only as part of our\n> [commercial subscription](https://nginx.com/products/).", + "description_html": "

Configures name servers used to resolve names of upstream servers\ninto addresses, for example:

\n\n
resolver 127.0.0.1 [::1]:5353;\n
\n\n

The address can be specified as a domain name or IP address,\nwith an optional port.\nIf port is not specified, the port 53 is used.\nName servers are queried in a round-robin fashion.

\n\n

By default, nginx will look up both IPv4 and IPv6 addresses while resolving.\nIf looking up of IPv4 or IPv6 addresses is not desired,\nthe ipv4=off (1.23.1) or\nthe ipv6=off parameter can be specified.

\n\n

By default, nginx caches answers using the TTL value of a response.\nThe optional valid parameter allows overriding it:

\n\n
resolver 127.0.0.1 [::1]:5353 valid=30s;\n
\n\n
\n

To prevent DNS spoofing, it is recommended\nconfiguring DNS servers in a properly secured trusted local network.

\n
\n\n

The optional status_zone parameter (1.17.5)\nenables\ncollection\nof DNS server statistics of requests and responses\nin the specified zone.\nThe parameter is available as part of our\ncommercial subscription.

\n\n
\n

Since version 1.17.5 and prior to version 1.27.3,\nthis directive was available only as part of our\ncommercial subscription.

\n
\n" }, { "name": "resolver_timeout", @@ -15986,8 +15986,8 @@ "

time

\n" ], "isBlock": false, - "description_md": "Sets a timeout for name resolution, for example:\n```\nresolver_timeout 5s;\n```\n\n> This directive is available as part of our\n> [commercial subscription](https://nginx.com/products/).", - "description_html": "

Sets a timeout for name resolution, for example:

\n\n
resolver_timeout 5s;\n
\n\n
\n

This directive is available as part of our\ncommercial subscription.

\n
\n" + "description_md": "Sets a timeout for name resolution, for example:\n```\nresolver_timeout 5s;\n```\n\n> Since version 1.17.5 and prior to version 1.27.3,\n> this directive was available only as part of our\n> [commercial subscription](https://nginx.com/products/).", + "description_html": "

Sets a timeout for name resolution, for example:

\n\n
resolver_timeout 5s;\n
\n\n
\n

Since version 1.17.5 and prior to version 1.27.3,\nthis directive was available only as part of our\ncommercial subscription.

\n
\n" } ], "variables": [ @@ -16385,5 +16385,5 @@ ] } ], - "version": "https://github.com/nginx/nginx.org/commit/3aad6b0f8f073986c4114a57cb42395a0d1b18ad" + "version": "https://github.com/nginx/nginx.org/commit/c9f5a565b315bf58bd564ab028ba9173d4208cc3" }