++gitea updates
This commit is contained in:
parent
a4e3ef1431
commit
379addec5e
11 changed files with 178 additions and 350 deletions
|
|
@ -24,22 +24,18 @@ defaults
|
|||
timeout http-keep-alive 10s
|
||||
timeout check 10s
|
||||
|
||||
frontend http
|
||||
bind :80
|
||||
frontend f_http
|
||||
bind ipv6@:80
|
||||
mode http
|
||||
option httplog
|
||||
|
||||
http-request do-resolve(txn.myip,mydns,ipv6) hdr(Host),lower
|
||||
# http-request capture var(txn.myip) len 255
|
||||
use_backend b_503 unless { var(txn.myip) -m found }
|
||||
|
||||
default_backend http
|
||||
# if DNS resolving did not work
|
||||
# use_backend b_503 unless { var(txn.myip) -m found }
|
||||
|
||||
# dummy backend
|
||||
backend b_503
|
||||
mode http
|
||||
default_backend b_http
|
||||
|
||||
backend http
|
||||
backend b_http
|
||||
mode http
|
||||
http-request deny unless { hdr(host) -i c2.k8s.ooo }
|
||||
http-request set-dst var(txn.myip)
|
||||
|
|
@ -47,9 +43,8 @@ backend http
|
|||
|
||||
# # HTTPs
|
||||
frontend f_https
|
||||
bind :443
|
||||
bind ipv6@:443
|
||||
mode tcp
|
||||
option tcplog
|
||||
|
||||
tcp-request inspect-delay 5s
|
||||
tcp-request content accept if { req_ssl_hello_type 1 }
|
||||
|
|
@ -64,6 +59,5 @@ backend b_https
|
|||
tcp-request content set-dst var(txn.myip)
|
||||
server tcp_https ipv6@*
|
||||
|
||||
# tcp-request capture var(txn.myip) len 255
|
||||
# tcp-request connection deny unless { hdr(host) -i c2.k8s.ooo }
|
||||
# use_backend b_503 unless { var(txn.myip) -m found }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue