2020-07-16 15:20:07 +02:00
|
|
|
global
|
|
|
|
log stdout format raw local0 debug
|
|
|
|
|
|
|
|
defaults
|
|
|
|
option http-use-htx
|
2020-07-28 10:49:04 +02:00
|
|
|
timeout connect 3s
|
2020-07-16 15:20:07 +02:00
|
|
|
timeout client 10s
|
|
|
|
timeout client-fin 10s
|
|
|
|
timeout server 10s
|
|
|
|
timeout server-fin 10s
|
2020-07-28 10:49:04 +02:00
|
|
|
timeout check 2s
|
2020-07-16 15:20:07 +02:00
|
|
|
timeout tunnel 10s
|
2020-07-28 10:49:04 +02:00
|
|
|
timeout queue 2s
|
2020-07-16 15:20:07 +02:00
|
|
|
log global
|
|
|
|
option httplog
|
|
|
|
|
2020-08-14 11:13:56 +02:00
|
|
|
frontend uplink
|
|
|
|
mode tcp
|
|
|
|
bind :8000
|
|
|
|
tcp-request inspect-delay 2s
|
|
|
|
tcp-request content accept if HTTP
|
|
|
|
tcp-request content accept if { req.ssl_hello_type 1 }
|
|
|
|
use_backend receive_http if HTTP
|
|
|
|
default_backend receive_https
|
|
|
|
backend receive_http
|
|
|
|
mode tcp
|
|
|
|
server loopback-for-http abns@http send-proxy-v2
|
|
|
|
backend receive_https
|
|
|
|
mode tcp
|
|
|
|
server loopback-for-https abns@https send-proxy-v2
|
|
|
|
|
|
|
|
frontend http
|
|
|
|
mode http
|
|
|
|
bind abns@http accept-proxy
|
|
|
|
redirect scheme https code 301
|
|
|
|
|
2020-07-16 15:20:07 +02:00
|
|
|
frontend https
|
2020-02-13 10:01:33 +01:00
|
|
|
mode http
|
2020-08-14 11:13:56 +02:00
|
|
|
bind abns@https accept-proxy ssl crt /usr/local/etc/haproxy/combined.pem alpn h2,http/1.1
|
2020-06-10 13:58:26 +02:00
|
|
|
default_backend backend_client # this is defined in the dev-*/prod-* file
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
acl action path_beg -i /system/action
|
|
|
|
use_backend backend_action if action
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
acl presenter path_beg -i /system/presenter
|
|
|
|
use_backend backend_presenter if presenter
|
|
|
|
|
|
|
|
acl autoupdate path_beg -i /system/autoupdate
|
|
|
|
use_backend backend_autoupdate if autoupdate
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2020-07-14 10:45:27 +02:00
|
|
|
acl auth path_beg -i /system/auth
|
|
|
|
use_backend backend_auth if auth
|
|
|
|
|
2020-07-29 08:54:11 +02:00
|
|
|
acl media path_beg -i /system/media
|
|
|
|
use_backend backend_media if media
|
|
|
|
|
2020-02-13 10:01:33 +01:00
|
|
|
stats enable
|
|
|
|
stats uri /stats
|
|
|
|
stats refresh 10s
|
|
|
|
stats auth admin:admin
|
|
|
|
|
|
|
|
resolvers docker_resolver
|
|
|
|
nameserver dns 127.0.0.11:53
|
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
backend backend_action
|
|
|
|
mode http
|
|
|
|
server action backend:9002 resolvers docker_resolver check
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
backend backend_presenter
|
|
|
|
mode http
|
|
|
|
server presenter backend:9003 resolvers docker_resolver check
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
backend backend_autoupdate
|
|
|
|
mode http
|
2020-07-16 15:20:07 +02:00
|
|
|
timeout server 1h
|
|
|
|
server autoupdate autoupdate:9012 resolvers docker_resolver check ssl verify none alpn h2
|
2020-07-14 10:45:27 +02:00
|
|
|
|
|
|
|
backend backend_auth
|
|
|
|
mode http
|
2020-07-29 08:54:11 +02:00
|
|
|
server auth auth:9004 resolvers docker_resolver check
|
|
|
|
|
|
|
|
backend backend_media
|
|
|
|
mode http
|
|
|
|
server media media:9006 resolvers docker_resolver check
|