From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sMGuL/p/y16mCAAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 08:21:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GLqDK/p/y17lSgAAB5/wlQ (envelope-from ) for ; Mon, 25 May 2020 08:21:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2087B940144 for ; Mon, 25 May 2020 08:21:14 +0000 (UTC) Received: from localhost ([::1]:43224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd8MC-0000n5-Ba for larch@yhetil.org; Mon, 25 May 2020 04:21:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd8M2-0000lm-Tu for bug-guix@gnu.org; Mon, 25 May 2020 04:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jd8M2-0002OF-Hc for bug-guix@gnu.org; Mon, 25 May 2020 04:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jd8M2-0004pb-CU for bug-guix@gnu.org; Mon, 25 May 2020 04:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#37207: [PATCH] nginx: berlin: Work around Last-Modified issues for guix.gnu.org. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 May 2020 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.159039485318535 (code B ref 37207); Mon, 25 May 2020 08:21:02 +0000 Received: (at 37207) by debbugs.gnu.org; 25 May 2020 08:20:53 +0000 Received: from localhost ([127.0.0.1]:39731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Ls-0004os-Tl for submit@debbugs.gnu.org; Mon, 25 May 2020 04:20:53 -0400 Received: from mira.cbaines.net ([212.71.252.8]:50110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Lr-0004ol-GC for 37207@debbugs.gnu.org; Mon, 25 May 2020 04:20:52 -0400 Received: from localhost (unknown [46.237.172.222]) by mira.cbaines.net (Postfix) with ESMTPSA id 8938127BBE1 for <37207@debbugs.gnu.org>; Mon, 25 May 2020 09:20:50 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 2cd12d7c for <37207@debbugs.gnu.org>; Mon, 25 May 2020 08:20:47 +0000 (UTC) From: Christopher Baines Date: Mon, 25 May 2020 09:20:47 +0100 Message-Id: <20200525082047.3943-1-mail@cbaines.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <87imh2pxsc.fsf@cbaines.net> References: <87imh2pxsc.fsf@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: +Sy20BEzEUT6 * hydra/nginx/berlin.scm (%berlin-servers): Add some config to the nginx-server-configurations for guix.gnu.org. --- hydra/nginx/berlin.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm index 303fd35..8c90eb1 100644 --- a/hydra/nginx/berlin.scm +++ b/hydra/nginx/berlin.scm @@ -514,6 +514,13 @@ PUBLISH-URL." (locations guix.gnu.org-locations) (raw-content (list + ;; TODO This works around NGinx using the epoch for the + ;; Last-Modified date, as well as the etag. + ;; See http://issues.guix.info/issue/37207 + "add_header Last-Modified \"\";" + "if_modified_since off;" + "etag off;" + "access_log /var/log/nginx/guix-info.access.log;"))) (nginx-server-configuration @@ -634,6 +641,13 @@ PUBLISH-URL." (append %tls-settings (list + ;; TODO This works around NGinx using the epoch for the + ;; Last-Modified date, as well as the etag. + ;; See http://issues.guix.info/issue/37207 + "add_header Last-Modified \"\";" + "if_modified_since off;" + "etag off;" + "access_log /var/log/nginx/guix-gnu-org.https.access.log;")))) (nginx-server-configuration -- 2.26.2