diff options
author | cyfraeviolae <cyfraeviolae> | 2024-07-20 06:57:55 +0000 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-07-20 06:57:55 +0000 |
commit | 2ef1c77fd5601eab544b03c40b80b501b6e19378 (patch) | |
tree | 989fcb6f60eea5f64d8c9ea5a527451f4f94b035 | |
parent | f775042b20ff023728274567b2eae412614fb9ab (diff) |
ssl aseemslegit
-rw-r--r-- | cyfraeviolae.conf | 22 |
1 files changed, 21 insertions, 1 deletions
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 |