From 2ef1c77fd5601eab544b03c40b80b501b6e19378 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Sat, 20 Jul 2024 06:57:55 +0000 Subject: ssl aseemslegit --- cyfraeviolae.conf | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index 213b9a1..1858f90 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -142,7 +142,6 @@ server { # } server { - listen 80; server_name aseemslegit.com; location ~ /\. { deny all; @@ -166,6 +165,13 @@ server { # ssl_certificate_key /etc/letsencrypt/live/quietreading.org/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/aseemslegit.com/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/aseemslegit.com/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 { @@ -268,3 +274,17 @@ server { # add_header Cache-Control "public"; # } # } + + +server { + if ($host = aseemslegit.com) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + server_name aseemslegit.com; + return 404; # managed by Certbot + + +} \ No newline at end of file -- cgit v1.2.3