hns_doh_loadbalancer/nginx.conf
Nathan Woodburn 3705da5266
All checks were successful
Build Docker / Build Docker (push) Successful in 23s
fix: Try using https
2023-12-15 15:22:11 +11:00

41 lines
761 B
Nginx Configuration File

server {
listen 8001 default_server;
server_name doh.hnshosting.au;
location / {
proxy_pass https://doh.hnshosting.au;
proxy_set_header Host doh.hnshosting.au;
}
}
server {
listen 8002 default_server;
server_name easyhandshake.com;
location / {
proxy_pass https://easyhandshake.com:8053;
proxy_set_header Host easyhandshake.com;
}
}
server {
listen 8003 default_server;
server_name doh.hnsdns.com;
location / {
proxy_pass https://doh.hnsdns.com;
proxy_set_header Host doh.hnsdns.com;
}
}
upstream main {
server 127.0.0.1:8001;
server 127.0.0.1:8002;
server 127.0.0.1:8003;
}
server {
listen 80;
server_name _;
location / {
proxy_pass https://main;
}
}