Skip to content

Instantly share code, notes, and snippets.

@bensig
Created November 15, 2019 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bensig/8c11fdbdd2d46c0020f65110265e6757 to your computer and use it in GitHub Desktop.
Save bensig/8c11fdbdd2d46c0020f65110265e6757 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