From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6BhLJ0tHQWXodAAAauVa8A:P1 (envelope-from ) for ; Tue, 31 Oct 2023 19:28:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6BhLJ0tHQWXodAAAauVa8A (envelope-from ) for ; Tue, 31 Oct 2023 19:28: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 4A92758810 for ; Tue, 31 Oct 2023 19:28:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=Dmn1I5nq; dmarc=pass (policy=none) header.from=lepiller.eu; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698776907; a=rsa-sha256; cv=none; b=bq6rEBCEj1X988EtWDmHtNXTeHLbA34tjVhHy/6jgH7EkHQZKIC6LluQ/fYIv3+xWz7F6H FhxHETrCdeIzh0HN4xoJxlO9mA/IO2k9gxgZ2UaMxvtn3ecY1HY2TBorRLfjIHZ7FTKxVi mpILPq8KLKKd9EJinOp0tXqHuYeQt+S+o/qGQmh8nCcBP5ZSLtZKcZCSJ3UVrZWzgWWjjk EtZhVNtz/tc4JbTd37DdIs2gm+FU5fIHEwrOCOlIg/3JaQKkQo6duSqiwUFualVGRrDray +SyOZqNlBsrWnyOPIwvmWATiD3AS1HYypaE/nPmMlFjk2rLGsMSNoBaW8ofZZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=Dmn1I5nq; dmarc=pass (policy=none) header.from=lepiller.eu; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698776907; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7pLuM8ZaQSAxUs6EV0XtPyF3hwj0IIac8hzUqqyWsUE=; b=TMXnQLZz66UiK+YPadq3ope80recv1lk0GEMvEoVqzn8u1urTD/7rLlO1/GOJAvAZJPqEm mFzC3fPXdma/6I2+JmIISbzWxeD3EWrljjeOM0y3wU8rnjjo8dT7lRm+hUPsf+gHpBJBlk hTJTlSh++NQNL2TSMpVKFp6+Vrl8RmHzMq2mIyTNZgWz5cabqtz1MNhrHP9tPig6eIs4oh dfKm6QZwqZ7t/lBF1+9vkuh3riNhXwRCijpb+D9wzBQ4li+WSo2HlpVFjDFDTcvjSExOSj aAUGUnOcEsg87LWSaQuTyKSiTp7CmYZfZCmnZdtZTJUlL2ext0Upwo58G8zpAw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxtT0-0008WR-Co; Tue, 31 Oct 2023 14:27:54 -0400 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 1qxtSu-0008Vi-VL for guix-devel@gnu.org; Tue, 31 Oct 2023 14:27:49 -0400 Received: from lepiller.eu ([89.234.186.109] helo=localhost) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxtSr-0000UG-FD for guix-devel@gnu.org; Tue, 31 Oct 2023 14:27:48 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 929097ea; Tue, 31 Oct 2023 18:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=BF7w1Uirmn7w bvjIb+bhfF4K3z3JUQ8hBVrb8f1ZsSE=; b=Dmn1I5nq00r8h0UU5DcH9lfKm9za u9u1CNgT9Pa9dMHTF6JQrBGK9HdRVTFwR4FEOeJhcXgO2z5OJXXdx31hxZy5RHr/ q8qQtQVlndUEky2+H7OcRU6GjHJKh1M0La1VTMFJc8V06DWiC7dv4wsxUqY3N9o+ lk27f6/SlLZTj5+sIXrn8oQ+roJY9aEG2u2W5ySs3Frkrn0sU5uuwOjC0lRjQydF q/dXv9L4lWFXI0Juob+9LRln+Q1fnxBGeotLYj4lqIhThNzaUFq8MLWCFTH4H+F3 imnLRbRmOHLubp6Vqy0d+nCLOpc1pZGvI5TN+W2/EvXMpkC7cvf2rW7wXg== Received: by localhost (OpenSMTPD) with ESMTPSA id ec31b678 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 31 Oct 2023 18:27:39 +0000 (UTC) Date: Tue, 31 Oct 2023 19:27:36 +0100 From: Julien Lepiller To: guix-devel@gnu.org, Tobias Alexandra Platen Subject: Re: How to get nginx and letsencrypt working on the guix system User-Agent: K-9 Mail for Android In-Reply-To: <67713d793edf4bcdcbf897dcfa3b657191c610b3.camel@platen-software.de> References: <67713d793edf4bcdcbf897dcfa3b657191c610b3.camel@platen-software.de> Message-ID: <96EC047A-84D9-46E4-9708-DBE1BAD3C1A6@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=localhost X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 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, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 4A92758810 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.53 X-Spam-Score: -9.53 X-TUID: YFrRPlRET0u5 Usually, this is fixed by not uting ssl at first, let certbot generate cert= ificates, and reconfigure with ssl=2E Le 31 octobre 2023 19:23:32 GMT+01:00, Tobias Alexandra Platen a =C3=A9crit=C2=A0: >I installed the guix system on a virtual machine, and changed the >config as documented in the guix manual under 12=2E9=2E19 Web Services: > >(service certbot-service-type > (certbot-configuration > (email "tplaten@posteo=2Ede") > (certificates (list (certificate- >configuration > (domains '("stream=2Eisengaara=2Ede")) (deploy-ho= ok >%nginx-deploy-hook)))))) > ;;; nginx testing > (service nginx-service-type=20 > (nginx-configuration > (server-blocks > (list (nginx-server-configuration > (server-name '("stream=2Eisengaara=2Ede")) > (root "/srv/http/stream=2Eisengaara=2Ede"))))= )) > >Certbot needs running nginx to create a certificate, and nginx wont >start without a certificate=2E The documentation does not explain how >to solve this circular service dependency=2E >