summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}