mirror of
https://github.com/minoplhy/DNSserver.git
synced 2024-11-24 10:16:54 +00:00
backend revolution
- move backend to bottom - remove garbage line
This commit is contained in:
parent
f5d4cb69c1
commit
c6fb9270de
@ -56,10 +56,6 @@ frontend 853-in
|
|||||||
# DoT
|
# DoT
|
||||||
use_backend dns-dot if { ssl_fc_sni dot.domain }
|
use_backend dns-dot if { ssl_fc_sni dot.domain }
|
||||||
|
|
||||||
backend dns-dot
|
|
||||||
mode tcp
|
|
||||||
server dot 127.0.0.1:5353 check
|
|
||||||
|
|
||||||
# TCP LB (443)
|
# TCP LB (443)
|
||||||
frontend 443-in-doh
|
frontend 443-in-doh
|
||||||
bind 0.0.0.0:443 strict-sni tfo ssl crt /etc/haproxy/certs/doh.domain.pem alpn h2,http/2
|
bind 0.0.0.0:443 strict-sni tfo ssl crt /etc/haproxy/certs/doh.domain.pem alpn h2,http/2
|
||||||
@ -75,12 +71,16 @@ frontend 443-in-doh
|
|||||||
use_backend dns-doh if { hdr(host) -i doh.domain }
|
use_backend dns-doh if { hdr(host) -i doh.domain }
|
||||||
|
|
||||||
|
|
||||||
backend dns-doh
|
backend dns-dot
|
||||||
mode http
|
mode tcp
|
||||||
server dns-doh 127.0.0.1:8053 check
|
server dot 127.0.0.1:5353 check
|
||||||
|
|
||||||
http-response set-header Strict-Transport-Security max-age=63072000
|
backend dns-doh
|
||||||
|
mode http
|
||||||
|
server dns-doh 127.0.0.1:8053 check
|
||||||
|
|
||||||
backend check
|
backend check
|
||||||
mode http
|
mode http
|
||||||
errorfile 503 /root/dns/check.http
|
errorfile 503 /root/dns/check.http
|
||||||
|
|
||||||
|
http-response set-header Strict-Transport-Security max-age=63072000
|
||||||
|
Loading…
Reference in New Issue
Block a user