Skip to content

Instantly share code, notes, and snippets.

@raystyle
Forked from bensig/haproxy.cfg
Created November 26, 2020 09:27
Show Gist options
  • Save raystyle/903fbfbd9ccae5b1cd791c751b988476 to your computer and use it in GitHub Desktop.
Save raystyle/903fbfbd9ccae5b1cd791c751b988476 to your computer and use it in GitHub Desktop.
haproxy config for P2P proxy using wireguard for EOS seed nodes
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 4096
nbthread 32
nbproc 1
cpu-map auto:1/1-4 0-3
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend nodeosfront
bind <local-ip>:9876
option tcplog
mode tcp
timeout client 4h
option clitcpka
default_backend swedenodeosback
backend nodeosback
timeout connect 5000
timeout server 4h
server seed <remote-ip>:9876
server seed1 <remote-ip1>:5559 maxconn 300
server seed2 <remote-ip2>:5557 maxconn 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment