From 9827f5ace731fd407a5d48fb5e75c2804f1a55b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Thu, 3 Dec 2020 16:53:43 +0100 Subject: [PATCH] Instructs Nginx to listen on both IPv6 and IPv4 On a server which has IPv6 configured, `sudo certbot --nginx` would fail because certbot looks for both A and AAAA DNS records, and if AAAA (IPv6) is found it uses that. By adding: ``` listen 80; listen [::]:80; ``` issue #22 is solved. Servers which have only IPv4 configured will continue working normally. --- reverse-proxy/nginx/plausible | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reverse-proxy/nginx/plausible b/reverse-proxy/nginx/plausible index ba83b27..b2e8649 100644 --- a/reverse-proxy/nginx/plausible +++ b/reverse-proxy/nginx/plausible @@ -1,6 +1,9 @@ server { # replace example.com with your domain name server_name example.com; + + listen 80; + listen [::]:80; location / { proxy_pass http://127.0.0.1:8000;