summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cyfraeviolae.conf22
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