From 6a2097232cd81a20122719a41b5752fda6f079c2 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Tue, 29 Dec 2020 08:11:34 +0000 Subject: [PATCH] Reinstalled some Certbot certificates. --- doi.ionathan.ch | 13 ++++++------- git.ionathan.ch | 13 +++++++------ next.ionathan.ch | 10 +++++----- rss.ionathan.ch | 13 +++++++------ 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/doi.ionathan.ch b/doi.ionathan.ch index 8134a55..8989ca0 100644 --- a/doi.ionathan.ch +++ b/doi.ionathan.ch @@ -6,26 +6,25 @@ server { try_files $uri $uri/ =404; } - listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/git.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/git.ionathan.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot - } + server { if ($host = doi.ionathan.ch) { return 301 https://$host$request_uri; } # managed by Certbot - listen 80; - listen [::]:80; server_name doi.ionathan.ch; + listen 80; return 404; # managed by Certbot -} \ No newline at end of file +} diff --git a/git.ionathan.ch b/git.ionathan.ch index 37a3a6d..a946110 100644 --- a/git.ionathan.ch +++ b/git.ionathan.ch @@ -6,24 +6,25 @@ server { proxy_set_header X-Real-IP $remote_addr; } - listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/git.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/git.ionathan.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } + server { if ($host = git.ionathan.ch) { return 301 https://$host$request_uri; } # managed by Certbot - listen 80; - listen [::]:80; server_name git.ionathan.ch; + listen 80; return 404; # managed by Certbot -} \ No newline at end of file +} diff --git a/next.ionathan.ch b/next.ionathan.ch index 3a82643..9c01cd7 100644 --- a/next.ionathan.ch +++ b/next.ionathan.ch @@ -16,13 +16,14 @@ server { return 301 $scheme://$host/remote.php/dav; } - listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/git.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/git.ionathan.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } server { @@ -31,10 +32,9 @@ server { } # managed by Certbot - listen 80; - listen [::]:80; server_name next.ionathan.ch; + listen 80; return 404; # managed by Certbot diff --git a/rss.ionathan.ch b/rss.ionathan.ch index f350535..e1ed4ee 100644 --- a/rss.ionathan.ch +++ b/rss.ionathan.ch @@ -6,24 +6,25 @@ server { proxy_set_header X-Real-IP $remote_addr; } - listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/git.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/git.ionathan.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } + server { if ($host = rss.ionathan.ch) { return 301 https://$host$request_uri; } # managed by Certbot - listen 80; - listen [::]:80; server_name rss.ionathan.ch; + listen 80; return 404; # managed by Certbot -} \ No newline at end of file +}