Add change

This commit is contained in:
2024-12-30 12:15:35 +00:00
parent 691a2af5ec
commit acd0605068
5 changed files with 29 additions and 11 deletions

View File

@@ -361,6 +361,10 @@ http {
server foundry:30000;
}
upstream change-handler {
server change:9000;
}
server {
listen 443 ssl http2;
@@ -384,6 +388,20 @@ http {
proxy_pass http://foundry-handler;
}
location /change {
# 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://change-handler;
}
}
upstream pihole-handler {