hns_doh_loadbalancer/nginx.conf
Nathan Woodburn a0d395ae4e
All checks were successful
Build Docker / Build Docker (push) Successful in 22s
fix: Update to use https and a logging
2023-12-15 14:34:37 +11:00

25 lines
679 B
Nginx Configuration File

upstream loadbalancer {
server doh.hnshosting.au:443 weight=1;
server easyhandshake.com:8053 weight=1;
server doh.hnsdns.com:443 weight=1;
server hs.dnssec.dev:443 weight=1;
server hnsns.net:443 weight=1;
}
server {
listen 80;
# Catch all servers
server_name _;
location / {
proxy_pass https://loadbalancer;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Show which node served the request in logs
add_header X-Load-Balancer-Node $upstream_addr;
}
}