Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block haproxytechblog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
haproxytechblog /
Last active Oct 8, 2019
HAProxy and Docker Swarm
$ apt update
$ apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
$ curl -fsSL | sudo apt-key add -
$ add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
$ apt update
$ apt install docker-ce docker-ce-cli
View blog20190830-01.cfg
frontend www
bind :80
# Add a response header
http-response add-header X-XSS-Protection "1; mode=block"
# Remove a response header
http-response del-header X-Powered-By
# Change a response header
haproxytechblog / blog20190724-01.txt
Last active Aug 27, 2019
DNS for Service Discovery in HAProxy
View blog20190724-01.txt TTL class SRV priority weight port target
haproxytechblog / blog20190730-01.cfg
Created Jul 29, 2019
Four Examples of HAProxy Rate Limiting
View blog20190730-01.cfg
backend servers
server s1 check maxconn 30
server s2 check maxconn 30
server s3 check maxconn 30
haproxytechblog /
Last active Sep 4, 2019
HAProxy Traffic Mirroring for Real-world Testing
$ sudo apt update
$ sudo apt install -y autoconf automake build-essential git libcurl4-openssl-dev libev-dev libpthread-stubs0-dev pkg-config
$ git clone
$ cd spoa-mirror
$ ./scripts/bootstrap
$ ./configure
$ make all
$ sudo cp ./src/spoa-mirror /usr/local/bin/
haproxytechblog / blog20171011-01.cfg
Last active Oct 11, 2019
HAProxy SSL Termination
View blog20171011-01.cfg
bind ssl crt /etc/ssl/certs/mysite.pem
default_backend web_servers
haproxytechblog / blog20190712-01.cfg
Last active Jul 12, 2019
HAProxy Layer 7 Retries and Chaos Engineering
View blog20190712-01.cfg
backend be_servers
balance roundrobin
server s1 server1:80 maxconn 10
server s2 server2:80 maxconn 10
server s3 server3:80 maxconn 10
haproxytechblog /
Last active Sep 17, 2019
Dissecting the HAProxy Kubernetes Ingress Controller
kubectl apply -f
$ curl --get --user admin:mypassword \
View blog20190616-01.cfg
log stdout local0
log fd@1 local0
log stdout format raw local0
You can’t perform that action at this time.