From 3bcc64581d11f89901ad50f9ad4ee002ac1e5d59 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Tue, 22 Feb 2022 20:15:33 -0500 Subject: conf --- cyfraeviolae.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; } -- cgit v1.2.3