From: Aaron DeVore Date: Thu, 17 Jun 2021 17:36:00 +0000 (-0700) Subject: LemmyNet/lemmy#1635: Fix IPv6 port setup for Nginx (#1636) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/static/%7Bpost.url%7D?a=commitdiff_plain;h=79ee271a5e0c6eae6e96d0ef1e6818856e877e55;p=lemmy.git LemmyNet/lemmy#1635: Fix IPv6 port setup for Nginx (#1636) --- diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 675925a2..9c924442 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -2,6 +2,7 @@ limit_req_zone $binary_remote_addr zone=lemmy_ratelimit:10m rate=1r/s; server { listen 80; + listen [::]:80; server_name {{ domain }}; location /.well-known/acme-challenge/ { root /var/www/certbot; @@ -13,6 +14,7 @@ server { server { listen 443 ssl http2; + listen [::]:443 ssl http2; server_name {{ domain }}; ssl_certificate /etc/letsencrypt/live/{{domain}}/fullchain.pem;