From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id XEyCGSvVp2MIFAAAbAwnHQ (envelope-from ) for ; Sun, 25 Dec 2022 05:44:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IBTHGCvVp2MT0AAA9RJhRA (envelope-from ) for ; Sun, 25 Dec 2022 05:44:27 +0100 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 2D960F1E7 for ; Sun, 25 Dec 2022 05:44:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9Irn-0006Rl-3F; Sat, 24 Dec 2022 23:44:07 -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 1p9Irl-0006Pk-AK for guix-devel@gnu.org; Sat, 24 Dec 2022 23:44:05 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1p9Irj-000457-BF for guix-devel@gnu.org; Sat, 24 Dec 2022 23:44:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=4t6mcPL8dtL6HEF EbBizms1hE64N1+HdK4qa7ZrLQ38=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=D58GFwwaIt+hzXQSTF+aS8NHgpyQn9c9aU0enOx2 OfRS993zch8tlodYOM5Ijezgn/hzDq6Gx3OlRiDusQfq7pipWwrqOk4Fw991/cZHXI+HG5 eisGyOxxQ0uk28EUXxpq32utuJP2wkm+fcapMQ5pD4UjXEB6eqmNYbYIPmYpc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 99f7ce2b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Sun, 25 Dec 2022 04:43:59 +0000 (UTC) Received: by mail-lf1-f47.google.com with SMTP id m6so1790229lfj.11 for ; Sat, 24 Dec 2022 20:43:58 -0800 (PST) X-Gm-Message-State: AFqh2krPAFc7E4uamB3dUI9FA5tDE91TU/KEcb2xbvqAtu7lI4v6dJPk ThNKCLUUn6uSX0uB5pLjLh4385JnuOVz1MnJ2sE= X-Google-Smtp-Source: AMrXdXtdP2xm+hKxRY497RqL5PWetGjBZzoXy+xE/SsJVflQeDnbjS0B/vR6R7rAmwTY1vWrJMLKHNJOCtsW2ppcweA= X-Received: by 2002:a05:6512:2a8f:b0:4b5:9be4:ed56 with SMTP id dt15-20020a0565122a8f00b004b59be4ed56mr758293lfb.19.1671943437049; Sat, 24 Dec 2022 20:43:57 -0800 (PST) MIME-Version: 1.0 References: <513cf35a-22d5-474b-8b1e-640a369a5aa4@me.com> In-Reply-To: <513cf35a-22d5-474b-8b1e-640a369a5aa4@me.com> Date: Sat, 24 Dec 2022 20:43:20 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Example Nginx config from Guix manual does not work To: Adam Kandur Cc: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671943467; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uOMhf9KPGpjg+ZpL8AcXGPyEeFzPNfNL/hJV3YdLIFk=; b=pUqL3rHtNUsvH/eFPmUkglahdaL04Y8O3jB9ILAGCAlQ/3uFJNIjlj1y2lFhzKRbN4TRHK xcfJECGHNgIaHudS1DucddmEMsBlPOJdzGN/CotmU+bQE4TVrlUy5BgURhZ0AMMSicXON+ HfrMr1ElR3naoks7Ry5gIaSo8XvDAWj/iYj23zksF1Ubs4FMcYWR/pRtQ6vgK3npmIgwnx r12AGNNyiIWvAnJnmiCfey+eOwuggIwr6SqY8nQohN88C0I8ZKdsGjBNWtOTeV5wKCjfTJ 6+I8J91KkYaWZU4B2kM5RbrCmSikcel+zEcd3ttjruSRit5vEyFsbaRRHIXM/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=D58GFwwa; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671943467; a=rsa-sha256; cv=none; b=l12IFUizFjkST00bPB56gpmhRfNH0DC7+225Mv9vNXykQi7z7MrLYhK55qL7aOu5yaijVG HFCelpjqUSWgAME+mjTfAzIInvK9T2iQtuOnPTjm13MBUJreAZGhOpweGQLRLTYXGkUt6G V81/Vp2VO4Q6ZIOfT9jqNaw/Jybcy7TAyHA8SVBp7zdAX0KjCOuyEFbaZelfoHWBjWYMVJ P3yUbHAG9eBiU0QclaWfJqgsblmvxP/kVycxIDagUpMJbOLOE3+y7F+PBij4au1XzNSn93 1wq8fdCTCOU8F7ilio5PAlbj+t1uSq79ep+vw2MSw3FxKhEMHfSGSX6tm1MzmA== X-Spam-Score: -3.31 X-Migadu-Queue-Id: 2D960F1E7 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=D58GFwwa; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.31 X-TUID: CpTo+VYgPCoc Hi Adam, On Sat, Dec 24, 2022 at 2:29 AM Adam Kandur wrote: > > Which will not work because it asks to listen on 443 with ssl, which is not possible because no certificates are provided. I use this configuration [1] but also face a chicken-and-egg problem for new sites. I normally take nginx offline with sudo herd stop nginx and then configure any newly needed certificates from Let's Encrypt with sudo certbot certificates --standalone Then I start Nginx again. At my convenience (but within ninety days) I then reconfigure the equipment while including both the new website in Nginx and the new Certbot definition in config.scm. Hope that helps! Kind regards Felix Lechner [1] https://codeberg.org/lechner/system-config/src/commit/2b6e49e466cb8bd4a3715111b4a4690192941ac8/host/wallace-server/operating-system.scm#L581-L743