hns_doh_loadbalancer/nginx.conf

41 lines
715 B
Nginx Configuration File
Raw Normal View History

2023-12-15 15:20:15 +11:00
server {
listen 8001 default_server;
2023-12-15 15:26:08 +11:00
server_name _;
2023-12-15 15:20:15 +11:00
location / {
proxy_pass https://doh.hnshosting.au;
proxy_set_header Host doh.hnshosting.au;
}
2023-12-15 14:29:49 +11:00
}
server {
2023-12-15 15:20:15 +11:00
listen 8002 default_server;
2023-12-15 15:26:08 +11:00
server_name _;
2023-12-15 15:20:15 +11:00
location / {
proxy_pass https://easyhandshake.com:8053;
proxy_set_header Host easyhandshake.com;
}
}
2023-12-15 15:14:07 +11:00
2023-12-15 15:20:15 +11:00
server {
listen 8003 default_server;
2023-12-15 15:26:08 +11:00
server_name _;
2023-12-15 15:20:15 +11:00
location / {
proxy_pass https://doh.hnsdns.com;
proxy_set_header Host doh.hnsdns.com;
}
}
2023-12-15 15:16:42 +11:00
2023-12-15 15:20:15 +11:00
upstream main {
server 127.0.0.1:8001;
server 127.0.0.1:8002;
server 127.0.0.1:8003;
}
2023-12-15 15:15:24 +11:00
2023-12-15 15:20:15 +11:00
server {
listen 80;
server_name _;
location / {
2023-12-15 15:26:08 +11:00
proxy_pass http://main;
2023-12-15 15:20:15 +11:00
}
2023-12-15 14:29:49 +11:00
}