From 9693195299fd5392346514f7666159a8181fb45a Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Mon, 26 Sep 2022 00:16:12 -0400 Subject: conf --- cyfraeviolae.conf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index 103d558..7356b2d 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -1,4 +1,11 @@ server { + listen 443 ssl default_server; + + 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; + location /forbidden-salamanders { proxy_pass http://127.0.0.1:9010/; } @@ -53,15 +60,10 @@ server { expires 1h; add_header Cache-Control "public"; } - - 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 { - listen 80; + listen 80 default_server; + return 301 https://$host$request_uri; } -- cgit v1.2.3