From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 23:48:38 2025 Received: (at submit) by debbugs.gnu.org; 17 Feb 2025 04:48:38 +0000 Received: from localhost ([127.0.0.1]:40862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjt3d-0007LC-F1 for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:48:38 -0500 Received: from lists.gnu.org ([2001:470:142::17]:44682) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjt3a-0007KN-3A for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:48:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjt3U-0003F1-JI for guix-patches@gnu.org; Sun, 16 Feb 2025 23:48:28 -0500 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tjt3S-0004K5-Ad for guix-patches@gnu.org; Sun, 16 Feb 2025 23:48:27 -0500 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-855799b9d1cso42223039f.1 for ; Sun, 16 Feb 2025 20:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hallsby.com; s=google; t=1739767704; x=1740372504; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1M7WYg3GF8PP3cLgbCZww+1VXSHkgrEhE+T582ial04=; b=k+tHg2r8/W7jCFSW4rkfdJUXHHl2cRPr6HosZ0VyIgRwFi5kgafRWgQmE1g3X2Rl2r uU0Za353BUDVTg4ec1VO+HbOxz9qLJmtoz7ekLnzzOEOOA88MgtFK7lG9IGTqRCjuG9Y zLvZHaTbt/YA37/Fl8y2adZxV4a/cKkMYYXMXX7g2B1yAC+amlQq6IzE7LfRvUZ2rgYP dc40zh2YTZOYqwJ956NeykkvOdu6PBl/DGaflBYqDJX7fQzkuxaiPo7cZBq28BDsudZl JDK2YPTwEzvTGliCw7DIl7RWWVSZzYUsF9w3Ln8zG47i0xRXvAyMu/kSGptv8HEmxbN3 7LNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739767704; x=1740372504; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1M7WYg3GF8PP3cLgbCZww+1VXSHkgrEhE+T582ial04=; b=DW/EB96jRHKjTxQJ6rOBclmVE+ABd9aIyqkYFfr1s+nXYtxdy6tVCL2wiypxqfWH1G W6XGdIpvNITHg3UBhFeZXbUe4Eld2G843qoh5mlIXXAy7Ro1H91UYOLPAV58RqAJX+tI kCrqAgSINN+1WDO9b1ZRDQ2awp/UhAiQp/XO9DOlXcfEGEn5knHkggWncIT67SjjY/ws 5A9dCAocdJTCwMyjA2RDj9aEgePR/G8EQEPKQYWydILhllIX9Dp4LM6BPKmslMe0ZVuF Ish1NSYsRnj9l3ZaSjIwaokigK/60oSUaVTFX2zemA+4rG+k1GVpNUHyGZJtoj3NEvRx u8IA== X-Gm-Message-State: AOJu0YwaUSS8g35GlqVnw+ja14orS7oqqGUxidfbSL7h2yES1lWijYBS Y6VQqMn6xkRx2HuCquOAMP3nTwU23et8GlofdpuOuxQrjIt6YcrlLsrbfxH1w7ArncKgR30kciY = X-Gm-Gg: ASbGnctgz4lexGmpWjqMAvuV+ylIxuFM9DsmjRNDCshQoaX/gliAaEve3DLpI4cvyoi 3tgCA9v68EviZy4rHaJwKW1lj9QopA/6IFtCKZ4itQ20x+KMGSlQKQO65ltraDmOw7T7l8LWdIz qyCYdDyuqaH7ASdWESDSvUpuOcCnN8ksVbDi7S79fvGqEkBDJvxP2vBuZkmzX9Bc42j4X5Ue2NT UJC71jm+9aBpoeOk6jpZfN8V5F4jJyyuPlsvHdZChFRIkn4i8K6IIfpHqwR1wlfKDfAFosWCGWt VzGQAPVBvFR45dwjy8rH X-Google-Smtp-Source: AGHT+IFqtVp/ZLNLsFl6FJUpSjBMHeEX2IWETYGNzCLMFaJku4HByin4kA8WfoRH2fJK0DEkHGlHgA== X-Received: by 2002:a05:6602:2dd4:b0:855:683d:d45a with SMTP id ca18e2360f4ac-8557a136149mr815610239f.9.1739767703938; Sun, 16 Feb 2025 20:48:23 -0800 (PST) Received: from Karl-Desktop.raven ([207.237.222.72]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-85566e120fasm175312639f.7.2025.02.16.20.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2025 20:48:22 -0800 (PST) From: Karl Hallsby To: guix-patches@gnu.org Subject: [PATCH] gnu: web: add nginx-headers-more-module Date: Sun, 16 Feb 2025 22:47:45 -0600 Message-ID: <171f25fda076f80ce11ac113addc239e1645a88f.1739767657.git.karl@hallsby.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=karl@hallsby.com; helo=mail-io1-xd2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Raven Hallsby X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) From: Raven Hallsby * gnu/packages/web.scm (nginx-headers-more-module): New variable. Change-Id: I8219fefadd008b884f836f974d0850b352825ee0 --- gnu/packages/web.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 1a70da4a90..fd386ee477 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -68,6 +68,7 @@ ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024, 2025 Artyom V. Poptsov +;;; Copyright © 2025 Raven Hallsby ;;; ;;; This file is part of GNU Guix. ;;; @@ -986,6 +987,67 @@ (define-public nginx-rtmp-module stream. Remote control of the module is possible over HTTP.") (license license:bsd-2))) +(define-public nginx-headers-more-module + (package + (inherit nginx) + (name "nginx-headers-more-module") + (version "0.38") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openresty/headers-more-nginx-module") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dbgwzkpni616nawjkrq0xid60wdgab3vciy7nr966ac6rjyiliy")))) + (build-system gnu-build-system) + (inputs + `(("nginx-sources" ,(package-source nginx)) + ,@(package-inputs nginx))) + (arguments + (substitute-keyword-arguments + `(#:make-flags '("modules") ;Only build this module not all of nginx. + ,@(package-arguments nginx)) + ((#:configure-flags flags) + #~(cons "--add-dynamic-module=." #$flags)) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'unpack-nginx-sources + (lambda _ + (begin + ;; The nginx source code is needed to compile the module. + (format #t "decompressing nginx source code~%") + (invoke "tar" "xvf" #$(this-package-input "nginx-sources") + ;; This package's LICENSE file would be + ;; overwritten with the one from nginx when + ;; unpacking the nginx source, so rename the nginx + ;; one when unpacking. + "--transform=s,/LICENSE$,/LICENSE.nginx," + "--strip-components=1")))) + (replace 'install + (lambda _ + (let ((modules-dir (string-append #$output + "/etc/nginx/modules"))) + (install-file "objs/ngx_http_headers_more_filter_module.so" + modules-dir)))) + (delete 'fix-root-dirs) + (delete 'install-man-page))))) + (home-page "https://github.com/openresty/headers-more-nginx-module") + (synopsis "Set, add, and clear input and output headers in NGINX http servers") + (description "Allows adding, setting, or clearing any output or input header +specified. + +This is an enhanced version of the standard headers module because it provides +more utilities like resetting or clearing \"builtin headers\" like @code{Content-Type}, +@code{Content-Length}, and @code{Server}. + +It also allows you to specify an optional HTTP status code criteria using the +@code{-s} option and an optional content type criteria using the @code{-t} +option while modifying the output headers with the more_set_headers and +more_clear_headers directives.") + (license license:bsd-2))) + (define-public nginx-module-vts (package (inherit nginx) base-commit: ad74dedb9f167c088d37a3a30d5d6fe841e9127b -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 05:43:46 2025 Received: (at 76357-done) by debbugs.gnu.org; 20 Feb 2025 10:43:46 +0000 Received: from localhost ([127.0.0.1]:60842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tl41x-0005p5-Jg for submit@debbugs.gnu.org; Thu, 20 Feb 2025 05:43:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33192) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tl41u-0005oG-DP for 76357-done@debbugs.gnu.org; Thu, 20 Feb 2025 05:43:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tl41j-0008EX-9U; Thu, 20 Feb 2025 05:43:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ZiH7dYOfBjKTgXsybPGMolNqGqiZducPOjym3ZGzaFc=; b=WpyhirvsqAuAj50rdWpQ 0fb0LqgxxE4mMTRx5R5cDSLV1+8T1F1UiAlMtq6KrMXFg1/u31z80PRxkw7taJCIHdx1KC9XKwwNi qR7IQhQnsW7SQGg0sDrgzonpV3J14dT4wWRjBbHDFAtspwIg/iU1PPrsQ+uB1ddeDaxZR497sy608 1vQFYIAdBSVcX9vW3EU4vWBm0JpuuybnG8iZ20cC124jtMHiIVAY3aoDQ2e0Tee940LHcNSUi2JA3 jfhUVQeGPz7kJHARlw1zEsmxgWbYHB4poPF68ZirUK06vePaFPcBBF7lKiJu0ffllvEfViJC73JkV uxMculvLnEysqQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Karl Hallsby Subject: Re: [bug#76357] [PATCH] gnu: web: add nginx-headers-more-module In-Reply-To: <171f25fda076f80ce11ac113addc239e1645a88f.1739767657.git.karl@hallsby.com> (Karl Hallsby's message of "Sun, 16 Feb 2025 22:47:45 -0600") References: <171f25fda076f80ce11ac113addc239e1645a88f.1739767657.git.karl@hallsby.com> Date: Thu, 20 Feb 2025 11:43:17 +0100 Message-ID: <87r03sgam2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76357-done Cc: 76357-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Karl Hallsby skribis: > From: Raven Hallsby > > * gnu/packages/web.scm (nginx-headers-more-module): New variable. > > Change-Id: I8219fefadd008b884f836f974d0850b352825ee0 Applied with the change below. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 7a4daee5c35..240163b034e 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1035,8 +1035,8 @@ (define-public nginx-headers-more-module (delete 'install-man-page))))) (home-page "https://github.com/openresty/headers-more-nginx-module") (synopsis "Set, add, and clear input and output headers in NGINX http servers") - (description "Allows adding, setting, or clearing any output or input header -specified. + (description "This NGINX module allows adding, setting, or clearing any +output or input header specified. This is an enhanced version of the standard headers module because it provides more utilities like resetting or clearing \"builtin headers\" like @code{Content-Type}, --=-=-=-- From unknown Sat Aug 16 18:46:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 20 Mar 2025 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator