mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Fabian Pflug <f.pflug@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Fabian Pflug <f.pflug@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] nginx: make http_limit modules selectable
Date: Thu, 14 Aug 2025 11:51:46 +0200	[thread overview]
Message-ID: <20250814095146.1942317-2-f.pflug@pengutronix.de> (raw)
In-Reply-To: <20250814095146.1942317-1-f.pflug@pengutronix.de>

Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
 rules/nginx.in   | 16 ++++++++++++++++
 rules/nginx.make |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/rules/nginx.in b/rules/nginx.in
index 6b2fed14b..f83031e97 100644
--- a/rules/nginx.in
+++ b/rules/nginx.in
@@ -84,6 +84,22 @@ config NGINX_HTTP_GRPC_MODULE
 	help
 	  ngx_http_grpc_module allows passing requests to a gRPC server.
 
+config NGINX_HTTP_LIMIT_CON_MODULE
+	bool
+	prompt "ngx_http_limit_conn_module"
+	help
+	  The ngx_http_limit_conn_module module is used to limit the number
+	  of connections per the defined key, in particular, the number of
+	  connections from a single IP address.
+
+config NGINX_HTTP_LIMIT_REQ_MODULE
+	bool
+	prompt "ngx_http_limit_req_module"
+	help
+	  The ngx_http_limit_req_module module is used to limit the
+	  request processing rate per a defined key, in particular,
+	  the processing rate of requests coming from a single IP address.
+
 config NGINX_HTTP_PROXY_MODULE
 	bool
 	prompt "ngx_http_proxy_module"
diff --git a/rules/nginx.make b/rules/nginx.make
index 7cb2fb58e..5694eeb04 100644
--- a/rules/nginx.make
+++ b/rules/nginx.make
@@ -87,8 +87,8 @@ NGINX_CONF_OPT := \
 	$(call ptx/ifdef, PTXCONF_NGINX_HTTP_SCGI_MODULE,,--without-http_scgi_module) \
 	$(call ptx/ifdef, PTXCONF_NGINX_HTTP_GRPC_MODULE,,--without-http_grpc_module) \
 	--without-http_memcached_module \
-	--without-http_limit_conn_module \
-	--without-http_limit_req_module \
+	$(call ptx/ifdef, PTXCONF_NGINX_HTTP_LIMIT_CON_MODULE,,--without-http_limit_conn_module) \
+	$(call ptx/ifdef, PTXCONF_NGINX_HTTP_LIMIT_REQ_MODULE,,--without-http_limit_req_module) \
 	--without-http_empty_gif_module \
 	--without-http_browser_module \
 	--without-http_upstream_hash_module \
-- 
2.39.5




      reply	other threads:[~2025-08-14  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14  9:51 [ptxdist] [PATCH 1/2] nginx: add http_auth_request module Fabian Pflug
2025-08-14  9:51 ` Fabian Pflug [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250814095146.1942317-2-f.pflug@pengutronix.de \
    --to=f.pflug@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox