summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-09-26 00:16:12 -0400
committercyfraeviolae <cyfraeviolae>2022-09-26 00:16:12 -0400
commit9693195299fd5392346514f7666159a8181fb45a (patch)
tree2783e57ae641f2bb66ec4349e22cebf6fb3a81f1
parenta1a1861826d4bc13732923b37946b8d763e254b5 (diff)
conf
-rw-r--r--cyfraeviolae.conf16
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;
}