diff options
author | cyfraeviolae <cyfraeviolae> | 2022-09-26 00:16:12 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-09-26 00:16:12 -0400 |
commit | 9693195299fd5392346514f7666159a8181fb45a (patch) | |
tree | 2783e57ae641f2bb66ec4349e22cebf6fb3a81f1 | |
parent | a1a1861826d4bc13732923b37946b8d763e254b5 (diff) |
conf
-rw-r--r-- | cyfraeviolae.conf | 16 |
1 files 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; } |