cleaned up configs + redirected cantropee to RPi

This commit is contained in:
2023-10-22 02:19:13 +02:00
parent cf6d4167b6
commit 8dc4843e54
4 changed files with 115 additions and 115 deletions
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
server_name cantropee.dittmar.dev;
location / {
return 301 https://$host$request_uri;
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
server {
listen 443 ssl;
server_name cantropee.dittmar.dev;
ssl_certificate /etc/letsencrypt/live/dittmar.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/dittmar.dev/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.222.0.2:4467;
}
}