updating certbot service

This commit is contained in:
2023-07-09 22:56:43 +01:00
parent 3d5de76f8d
commit 337f17460d
4 changed files with 50 additions and 1 deletions

View File

@@ -311,6 +311,35 @@ http {
}
}
upstream pihole-handler {
server pihole;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/nginx/certs/${DOMAIN}.crt;
ssl_certificate_key /etc/nginx/certs/${DOMAIN}.key;
server_name net.${DOMAIN};
client_max_body_size 300M;
location / {
# Set proxy headers
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# These are important to support WebSockets;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://pihole-handler;
}
}
upstream jitsi-handler {
server jitsi:80;
}