From c0c4b65f0fcae1b776bc963e87a968978329e1a4 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Fri, 23 Jan 2026 11:41:15 +0100 Subject: [PATCH] docs: regenerate settings.md --- docs/content/reference/settings.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/docs/content/reference/settings.md b/docs/content/reference/settings.md index 52cd3152..7fc136f9 100644 --- a/docs/content/reference/settings.md +++ b/docs/content/reference/settings.md @@ -370,7 +370,7 @@ Address is a string of the form: **Default:** `''` A comma-delimited list of datadog statsd (dogstatsd) tags to append to -statsd metrics. +statsd metrics. e.g. ``'tag1:value1,tag2:value2'`` !!! info "Added in 20" @@ -385,6 +385,17 @@ if not provided). !!! info "Added in 19.2" +### `enable_backlog_metric` + +**Command line:** `--enable-backlog-metric` + +**Default:** `False` + +Enable socket backlog metric (only supported on Linux). + +When enabled, gunicorn will emit a ``gunicorn.backlog`` histogram metric +showing the number of connections waiting in the socket backlog. + ## Process Naming ### `proc_name` @@ -726,7 +737,8 @@ def post_request(worker, req, environ, resp): Called after a worker processes the request. The callable needs to accept two instance variables for the Worker and -the Request. +the Request. If a third parameter is defined it will be passed the +environment. If a fourth parameter is defined it will be passed the Response. ### `child_exit` @@ -1031,8 +1043,11 @@ the headers defined here can not be passed directly from the client. **Default:** `'127.0.0.1,::1'` -Front-end's IPs from which allowed to handle set secure headers. -(comma separated). +Front-end's IP addresses or networks from which allowed to handle +set secure headers. (comma separated). + +Supports both individual IP addresses (e.g., ``192.168.1.1``) and +CIDR networks (e.g., ``192.168.0.0/16``). Set to ``*`` to disable checking of front-end IPs. This is useful for setups where you don't know in advance the IP address of front-end, but @@ -1159,7 +1174,11 @@ Example for stunnel config:: **Default:** `'127.0.0.1,::1'` -Front-end's IPs from which allowed accept proxy requests (comma separated). +Front-end's IP addresses or networks from which allowed accept +proxy requests (comma separated). + +Supports both individual IP addresses (e.g., ``192.168.1.1``) and +CIDR networks (e.g., ``192.168.0.0/16``). Set to ``*`` to disable checking of front-end IPs. This is useful for setups where you don't know in advance the IP address of front-end, but