From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yI9oNar9LGELVAAAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 17:47:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GHTAMKr9LGFYcwAAbx9fmQ (envelope-from ) for ; Mon, 30 Aug 2021 15:47:54 +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 F277AAE49 for ; Mon, 30 Aug 2021 17:47:53 +0200 (CEST) Received: from localhost ([::1]:60644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKjVo-0001af-Nq for larch@yhetil.org; Mon, 30 Aug 2021 11:47:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKjTI-0007qy-Oo for help-guix@gnu.org; Mon, 30 Aug 2021 11:45:17 -0400 Received: from vps-93-95-228-136.1984.is ([93.95.228.136]:36752 helo=csphy.pw) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKjTG-0005HE-Lr for help-guix@gnu.org; Mon, 30 Aug 2021 11:45:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csphy.pw; s=mail; t=1630338305; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4JLWdtYSjQP+UCcTBI4tZhjWqPd5SDQxeuGtEWKT3sU=; b=oSmI6v+Gfj1E99bGYOGuSgLzPTfboTXTXb+el7rBcYX0Jovoxdg/S85nk1jDX6WphG6rST VCZj1xqlgnkZcOmR6tVe/WqutGSkibCR28Xb5x4wtKDcNHOxHUZ6nzt6zdTB2SQXR/0EYF y57ZmAMwyGEQGFOw8kDK4YMhuuVVPtg= From: crodges To: Julien Lepiller Subject: Re: nginx refusing connection on port 443 Date: Mon, 30 Aug 2021 08:44:57 -0700 Message-ID: <4775808.03AtHJ87JN@sceadufaex> In-Reply-To: <20210830033530.66525699@tachikoma.lepiller.eu> References: <3603365.t5iAGTFeuN@sceadufaex> <20210830033530.66525699@tachikoma.lepiller.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Received-SPF: pass client-ip=93.95.228.136; envelope-from=crodges@csphy.pw; helo=csphy.pw X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 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, NO_FM_NAME_IP_HOSTN=0.615, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630338474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=4JLWdtYSjQP+UCcTBI4tZhjWqPd5SDQxeuGtEWKT3sU=; b=XKvUae6t/Vh2U7v0q+j8zt6drZwQWExVrHaUPunMtXLESnw6RfWPvb4CvMDEAA5wAQG7Yg U3YXdLTOJqZkYAx7srz3tThh+O/NvBj7eysy922fjfYsamZiTnXybfV7oeNY29/WRlIkbl y+9xQSVm0XhxnYdcNfGXpwkHIbnTFlx1YByZccmDk1E/e7UQJEcn1QM24pk9BJKDSHt69e eFmKg4JZhO1K60uN00Y0CRoBXpb0bzzZ4OWLeKKFuuh3JpofRqY2/82jIjCC0XsMHDg76s q2Nsvg6zeP+7qpVby/aQTM8sz6PJwdnrHbTIjwEaEnPX1qu04tXvvo1ve6UXXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630338474; a=rsa-sha256; cv=none; b=OioPz3CDjcEqeRo+RgZb0BxqjCiMLfjkLogRFfIFOAz11TfdqjRvNgGPXZukC43Jpi7qJT SmwUkCbmnFcpXOMBN37wazsKbD0AXxIeqfGO9u6xaamJPPoOTzfVqqIhzqOM4szu3zcAto AYlirXm+CxpXcfE4scF5dbOeRHdbrdsZJhONqpiDtjAaUlLtRfmUlLl4s3I/43C52O8jte RbV+yMktPIKt/UmuTtwB4BSwMcKJzgNpPPIC1ErDQlN65uoJdgTsQAVQ7cVsz1a+7omJzg WwCptZRKJYw2TKrvLpYanBjPLBi3SqZqYEHYG8XjY74N/8coNjETz5qPio4oyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=csphy.pw header.s=mail header.b=oSmI6v+G; dmarc=fail reason="SPF not aligned (relaxed)" header.from=csphy.pw (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=csphy.pw header.s=mail header.b=oSmI6v+G; dmarc=fail reason="SPF not aligned (relaxed)" header.from=csphy.pw (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: F277AAE49 X-Spam-Score: -0.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: ghT6n7PhDf4x On Sunday, August 29, 2021 6:35:30 P.M. PDT Julien Lepiller wrote: > Le Wed, 25 Aug 2021 21:25:03 -0700, >=20 > crodges a =E9crit : > > Hello everybody, > >=20 > > I'm setting up a guix vps and having some trouble, mainly because I'm > > getting used to the guix way. After a few tries, I finally got a > > let's encrypt certificate and nginx configured to read it. Problem > > is, nginx accepts fine connections on port 80, but when I try 443 I > > get > >=20 > > curl: (7) Failed to connect to lambdashire.com port 443 after 5249 > > ms: Connection refused > >=20 > > My first thought was to open port 443 on the firewall, but I don't > > know how to do that and didn't find how to in a few configuration > > examples I searched. Is this the right approach, to open the port? If > > it is, can you please point me to some documentation so I can try to > > figure out myself? > >=20 > > First time posting. Thanks. >=20 > Hi crodges, >=20 > Could you share your configuration? Especially the part where you > declare the nginx-service-type? There is a listen field that you should > set to something like: >=20 > (listen '("443 ssl http2" "[::]:443 ssl http2")) >=20 > of course, you can adapt it to your needs using the Nginx syntax. Thanks for the reply Julien, After playing around with it a little more, a reboot, of all things, did th= e=20 trick. So problem solved. In any case, I'll leave my nginx configuration he= re,=20 maybe someone find it useful. (service nginx-service-type (nginx-configuration (server-blocks (list (nginx-server-configuration ;(listen '("80" "443 ssl")) (server-name '("lambdashire.com")) (root "/data/www") (ssl-certificate "/etc/letsencrypt/live/ lambdashire.com/fullchain.pem") (ssl-certificate-key "/etc/letsencrypt/live/ lambdashire.com/privkey.pem") (locations (list (nginx-location-configuration ;certbot (uri "/.well-known") (body (list "root /data/www;")))))))))) The next thing I'll do is make nginx use only port 443 with ssl. I don't th= ink=20 it'll be hard, I only need to make sure certbot will like it.