nginx ipv6 support

This commit is contained in:
datalets 2021-02-24 14:49:12 +01:00
parent a7c55c45b5
commit f997ad37f5

View file

@ -7,12 +7,12 @@ upstream wagtail-site {
} }
server { server {
server_name _; server_name _;
listen 80 default_server; listen [::]:80 default_server;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
server { server {
server_name _; server_name _;
listen 443 ssl default_server; listen [::]:443 ssl default_server;
ssl_certificate /etc/ssl/certs/cloudflare.pem; ssl_certificate /etc/ssl/certs/cloudflare.pem;
ssl_certificate_key /etc/ssl/certs/cloudflare.key; ssl_certificate_key /etc/ssl/certs/cloudflare.key;