diff options
author | Paweł Dybiec <pawel@dybiec.info> | 2021-10-03 19:24:21 +0100 |
---|---|---|
committer | Paweł Dybiec <pawel@dybiec.info> | 2021-10-03 19:24:21 +0100 |
commit | 01333f593d76355c51878da3c46c547255161de7 (patch) | |
tree | c41ded033293a6be22117da8603cca94d9efa32f /templates/nginx.conf.j2 | |
parent | New maps in csgo (diff) |
Cleanup main
Diffstat (limited to 'templates/nginx.conf.j2')
-rw-r--r-- | templates/nginx.conf.j2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index aee87da..28c79cf 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -1,6 +1,7 @@ {% if server.http_redirect is defined and server.http_redirect %} server { listen 80; + listen [::]:80; server_name {{ server.name }}; return 301 https://$server_name$request_uri; } @@ -13,8 +14,10 @@ server { {% if server.http_redirect is not defined or not server.http_redirect %} listen 80; + listen [::]:80; {% endif %} - listen 443 ssl http2; + listen 443 ssl http2; + listen [::]:443 ssl http2; server_name {{ server.name }} {{server.aliases|default([])| join(' ')}}; location / { |