From cbd3c525c5adb21ab7c60489aa79683982bf73c4 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Sat, 23 Oct 2021 07:17:11 +0200 Subject: [PATCH] Aesthetic fixes. --- git.ionathan.ch | 5 +---- next.ionathan.ch | 6 +----- rss.ionathan.ch | 34 ++++++++++++++-------------------- 3 files changed, 16 insertions(+), 29 deletions(-) diff --git a/git.ionathan.ch b/git.ionathan.ch index a41aef4..2c675ef 100644 --- a/git.ionathan.ch +++ b/git.ionathan.ch @@ -19,10 +19,7 @@ server { return 301 https://$host$request_uri; } # managed by Certbot - 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 ce5967b..15d9345 100644 --- a/next.ionathan.ch +++ b/next.ionathan.ch @@ -20,7 +20,6 @@ server { ssl_certificate_key /etc/letsencrypt/live/next.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 { @@ -28,10 +27,7 @@ server { return 301 https://$host$request_uri; } # managed by Certbot - server_name next.ionathan.ch; listen 80; return 404; # managed by Certbot - - -} \ No newline at end of file +} diff --git a/rss.ionathan.ch b/rss.ionathan.ch index 4ecc248..df9ec86 100644 --- a/rss.ionathan.ch +++ b/rss.ionathan.ch @@ -1,6 +1,6 @@ upstream freshrss { - server localhost:8080; - keepalive 64; + server localhost:8080; + keepalive 64; } server { @@ -25,25 +25,19 @@ server { proxy_pass_header Authorization; } - listen 443 ssl; # managed by Certbot - 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 - ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot - + listen 443 ssl; # managed by Certbot + 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 + 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 + if ($host = rss.ionathan.ch) { + return 301 https://$host$request_uri; + } # managed by Certbot - - server_name rss.ionathan.ch; - listen 80; - return 404; # managed by Certbot - - -} \ No newline at end of file + server_name rss.ionathan.ch; + listen 80; + return 404; # managed by Certbot +}