summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-02-22 20:15:33 -0500
committercyfraeviolae <cyfraeviolae>2022-02-22 20:15:33 -0500
commit3bcc64581d11f89901ad50f9ad4ee002ac1e5d59 (patch)
tree5343da49a59294533fa1714e3302816e5baf0efa
parenta9c7d436f54d8a9b22e0ea21c16e86464980fa68 (diff)
conf
-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;
}