]> Untitled Git - lemmy.git/commitdiff
LemmyNet/lemmy#1635: Fix IPv6 port setup for Nginx (#1636)
authorAaron DeVore <aaron.devore@gmail.com>
Thu, 17 Jun 2021 17:36:00 +0000 (10:36 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 17:36:00 +0000 (17:36 +0000)
ansible/templates/nginx.conf

index 675925a201780af567a00a740a2c59eb1f6b0105..9c924442642e190083dd1ab86e834a00d1bee917 100644 (file)
@@ -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;