summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cyfraeviolae.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf
index 4661f6a..972aec1 100644
--- a/cyfraeviolae.conf
+++ b/cyfraeviolae.conf
@@ -3,4 +3,19 @@ server {
location / {
root /srv/cyfraeviolae;
}
+
+ listen 443 ssl; # managed by Certbot
+ ssl_certificate /etc/letsencrypt/live/cyfraeviolae.org/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/cyfraeviolae.org/privkey.pem;
+ include /etc/letsencrypt/options-ssl-nginx.conf;
+ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
+}
+
+server {
+ if ($host = cyfraeviolae.org) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+ server_name cyfraeviolae.org;
+ listen 80;
+ return 404;
}