Skip to content

Instantly share code, notes, and snippets.

@varazir
Last active November 4, 2018 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varazir/319b50bef3e4de1284ef52b38aaf5e23 to your computer and use it in GitHub Desktop.
Save varazir/319b50bef3e4de1284ef52b38aaf5e23 to your computer and use it in GitHub Desktop.
HAproxy
# Automaticaly generated, dont edit manually.
# Generated on: 2018-11-04 23:17
global
maxconn 1000
log /var/run/log local0 debug
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
hard-stop-after 15m
chroot /tmp/haproxy_chroot
daemon
server-state-file /tmp/haproxy_server_state
listen HAProxyLocalStats
bind 127.0.0.1:2200 name localstats
mode http
stats enable
stats admin if TRUE
stats show-legends
stats uri /haproxy/haproxy_stats.php?haproxystats=1
timeout client 5000
timeout connect 5000
timeout server 5000
resolvers globalresolvers
nameserver local localhost:53
resolve_retries 3
timeout retry 1s
hold valid 10s
frontend HTTPS
bind 31.208.183.121:443 name 31.208.183.121:443
mode tcp
log global
timeout client 30000
tcp-request inspect-delay 5s
acl Octoprint req.ssl_sni -i web1.dyndns.org
acl Domoticz req.ssl_sni -i web2.dyndns.org
acl Openvpn req.ssl_sni -i zedde.mine.nu
tcp-request content accept if { req.ssl_hello_type 1 }
use_backend Octoprint_ipvANY if Octoprint
use_backend Domoticz_ipvANY if Domoticz
use_backend Openvpn_ipvANY if Openvpn
backend Octoprint_ipvANY
mode tcp
id 102
log global
timeout connect 30000
timeout server 30000
retries 3
option ssl-hello-chk
server njorth 192.168.2.113:443 id 101 check inter 1000 resolvers globalresolvers
backend Domoticz_ipvANY
mode tcp
id 100
log global
timeout connect 30000
timeout server 30000
retries 3
option httpchk OPTIONS /
server zwave zwave:443 id 101 check-ssl check inter 1000 verify none resolvers globalresolvers
backend Openvpn_ipvANY
mode tcp
id 103
log global
timeout connect 30000
timeout server 30000
retries 3
server zedde 192.168.2.1:1194 id 101 check inter 1000 resolvers globalresolvers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment