Add change
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user