diff --git a/config/nginx/13.owlephant.icu.conf b/config/nginx/13.owlephant.icu.conf index 943296e..fc49cd1 100644 --- a/config/nginx/13.owlephant.icu.conf +++ b/config/nginx/13.owlephant.icu.conf @@ -33,18 +33,18 @@ server { # 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/13.owlephant.icu/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/13.owlephant.icu/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 = 13dev.quaff.top) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - server_name 13dev.quaff.top; listen 80; - return 404; # managed by Certbot - - + listen [::]:80; + server_name 13.owlephant.icu; + return 301 https://13.owlephant.icu$request_uri; }