fix: Try to fix ssl errors
All checks were successful
Build Docker / Build Docker (push) Successful in 24s
All checks were successful
Build Docker / Build Docker (push) Successful in 24s
This commit is contained in:
parent
2d446c8056
commit
7e709dd982
24
nginx.conf
24
nginx.conf
@ -1,23 +1,37 @@
|
||||
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 doh.hnshosting.au:443 weight=1 max_fails=1 fail_timeout=30s;
|
||||
server easyhandshake.com:8053 weight=1 max_fails=1 fail_timeout=30s;
|
||||
server doh.hnsdns.com:443 weight=1 max_fails=1 fail_timeout=30s;
|
||||
server hs.dnssec.dev:443 weight=1 max_fails=1 fail_timeout=30s;
|
||||
server hnsns.net:443 weight=1 max_fails=1 fail_timeout=30s;
|
||||
}
|
||||
|
||||
map $host $upstream {
|
||||
~^doh\.hnshosting\.au$ doh.hnshosting.au;
|
||||
~^easyhandshake\.com$ easyhandshake.com;
|
||||
~^doh\.hnsdns\.com$ doh.hnsdns.com;
|
||||
~^hs\.dnssec\.dev$ hs.dnssec.dev;
|
||||
~^hnsns\.net$ hnsns.net;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
# Catch all servers
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
# Set the upstream based on the host header
|
||||
proxy_set_header Host $upstream;
|
||||
|
||||
proxy_pass https://loadbalancer;
|
||||
proxy_ssl_verify off;
|
||||
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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user