Fix HaProxy redirection and client
This commit is contained in:
parent
cb894c9d99
commit
0993c25e66
@ -14,29 +14,32 @@ defaults
|
|||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
|
|
||||||
frontend uplink
|
# We have to wait for 2.3: https://github.com/haproxy/haproxy/issues/737
|
||||||
mode tcp
|
# WebSocket handling is broken in HaProxy 2.x, x<3
|
||||||
bind :8000
|
#frontend uplink
|
||||||
tcp-request inspect-delay 2s
|
# mode tcp
|
||||||
tcp-request content accept if HTTP
|
# bind :8000
|
||||||
tcp-request content accept if { req.ssl_hello_type 1 }
|
# tcp-request inspect-delay 2s
|
||||||
use_backend receive_http if HTTP
|
# tcp-request content accept if HTTP
|
||||||
default_backend receive_https
|
# tcp-request content accept if { req.ssl_hello_type 1 }
|
||||||
backend receive_http
|
# use_backend receive_http if HTTP
|
||||||
mode tcp
|
# default_backend receive_https
|
||||||
server loopback-for-http abns@http send-proxy-v2
|
#backend receive_http
|
||||||
backend receive_https
|
# mode tcp
|
||||||
mode tcp
|
# server loopback-for-http abns@http send-proxy-v2
|
||||||
server loopback-for-https abns@https send-proxy-v2
|
#backend receive_https
|
||||||
|
# mode tcp
|
||||||
|
# server loopback-for-https abns@https send-proxy-v2
|
||||||
|
|
||||||
frontend http
|
#frontend http
|
||||||
mode http
|
# mode http
|
||||||
bind abns@http accept-proxy
|
# bind abns@http accept-proxy
|
||||||
redirect scheme https code 301
|
# redirect scheme https code 301
|
||||||
|
|
||||||
frontend https
|
frontend https
|
||||||
mode http
|
mode http
|
||||||
bind abns@https accept-proxy ssl crt /usr/local/etc/haproxy/combined.pem alpn h2,http/1.1
|
#bind abns@https accept-proxy ssl crt /usr/local/etc/haproxy/combined.pem alpn h2,http/1.1
|
||||||
|
bind *:8000 ssl crt /usr/local/etc/haproxy/combined.pem alpn h2,http/1.1
|
||||||
default_backend backend_client # this is defined in the dev-*/prod-* file
|
default_backend backend_client # this is defined in the dev-*/prod-* file
|
||||||
|
|
||||||
acl action path_beg -i /system/action
|
acl action path_beg -i /system/action
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 0e8888fe23442bf362a77cbdefca5e406dacf020
|
Subproject commit 3a3c444d6495907195de1349aa475eca43ebc843
|
Loading…
Reference in New Issue
Block a user