Listen also on IPv6.

This commit is contained in:
Jonathan Chan 2022-11-24 15:03:05 +01:00
parent cbd3c525c5
commit 954303cf90
4 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://ionathan.ch;

View File

@ -7,6 +7,7 @@ server {
}
listen 443 ssl; # managed by Certbot
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/next.ionathan.ch/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/next.ionathan.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
@ -21,5 +22,6 @@ server {
server_name git.ionathan.ch;
listen 80;
listen [::]:80;
return 404; # managed by Certbot
}

View File

@ -16,6 +16,7 @@ server {
}
listen 443 ssl; # managed by Certbot
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/next.ionathan.ch/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/next.ionathan.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
@ -29,5 +30,6 @@ server {
server_name next.ionathan.ch;
listen 80;
listen [::]:80;
return 404; # managed by Certbot
}

View File

@ -26,6 +26,7 @@ server {
}
listen 443 ssl; # managed by Certbot
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/next.ionathan.ch/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/next.ionathan.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
@ -39,5 +40,6 @@ server {
server_name rss.ionathan.ch;
listen 80;
listen [::]:80;
return 404; # managed by Certbot
}