frontend JARVIS
bind 127.0.0.1:9443 name 127.0.0.1:9443 ssl crt-list /var/etc/haproxy/JARVIS.crt_list
mode http
log global
option http-keep-alive
option forwardfor
acl https ssl_fc
http-request set-header X-Forwarded-Proto http if !https
http-request set-header X-Forwarded-Proto https if https
timeout client 30000
acl octopi var(txn.txnhost) -m end -i /octopi
acl aclcrt_JARVIS var(txn.txnhost) -m reg -i ^mydnsnam.duckdns.org(:([0-9]){1,5})?$
http-request set-var(txn.txnhost) hdr(host)
use_backend octopi_ipvANY if aclcrt_JARVIS
use_backend JARVIS_ipvANY if aclcrt_JARVIS
backend octopi_ipvANY
mode http
id 102
log global
timeout connect 30000
timeout server 30000
retries 3
option forwardfor
server 192.168.1.36 192.168.1.36:5000 id 103 resolvers globalresolvers
backend JARVIS_ipvANY
mode http
id 100
log global
errorfile 503 /var/etc/haproxy/errorfile_JARVIS_ipvANY_503_Errore
timeout connect 30000
timeout server 30000
retries 3
server HomeAssistant 192.168.1.5:8123 id 101 resolvers globalresolvers