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 / blog20200211-01.yaml
Created Feb 10, 2020
Rolling Updates and Blue-Green Deployments with Kubernetes and HAProxy
View blog20200211-01.yaml
apiVersion: v1
kind: ConfigMap
name: haproxy-configmap
namespace: default
ssl-redirect: "OFF"
haproxytechblog / video-inuits-20200123-01.cfg
Created Jan 23, 2020
HAProxyConf 2019 - HAProxy as Egress Controller
View video-inuits-20200123-01.cfg
frontend proxy
acl client:myback:prod src
acl client:myback:dev src
acl client:myback:acc src
acl client:legback:dev src
acl client:3rdapp:prod src
View blog20200122-01.cfg
frontend proxy
http-request set-path /path2 if { path /path1 } { date() ge 1571558400 }
haproxytechblog / blog20200121-01.cfg
Created Jan 21, 2020
Building Blocks of a Modern Proxy
View blog20200121-01.cfg
stats socket /var/run/haproxy.sock mode 600 expose-fd listeners level user
View video-thredup-20200120-01.cfg
backend cart_service
server blue-cart-service cart-blue.ec2.tup.internal:8025 check weight 0 backup
server green-cart-service cart-green.ec2.tup.internal:8025 check weight 100
View video-yammer-20190120-01.cfg
mode {protocol}
balance {balanceMode}
timeout client {clTO}
timeout connect {cTO}
timeout server {sTO}
timeout http-keep-alive {kaTO}
listen ::{service}-{servicePort}
acl down nbsrv(hc-{servicePort}) lt 1
haproxytechblog / blog20191216-01.cfg
Last active Dec 16, 2019
Programmatic HAProxy Configuration Using the Data Plane API
View blog20191216-01.cfg
userlist dataplane-api
user dataplaneapi password $5$oui1y1Q7o$VXoOr7Ns9WLyDFkWH0LTu9oysn/zyYhF4mSQHe9Ba5D
program api
command /opt/hapee-extras/sbin/hapee-dataplane-api --host --port 5555 -c /etc/hapee-2.0/hapee-lb.cfg -u dataplane-api -b /opt/hapee-2.0/sbin/hapee-lb -r "service hapee-2.0-lb reload" --reload-delay 5 -m /var/run/hapee-2.0/hapee-lb.sock --log-to=file --log-file=/var/log/hapee-runtime-api.log
View haproxy-config-2-1.cfg
# This is the ultimate HAProxy 2.0 "Getting Started" config
# It demonstrates many of the features available which are now available
# While you may not need all of these things, this can serve
# as a reference for your own configurations.
# Have questions? Check out our community Slack:
haproxytechblog / blog20191129-01.cfg
Last active Nov 29, 2019
HAProxy 2.1: Supercharged Performance and a Cleaner Codebase
View blog20191129-01.cfg
h1-case-adjust content-length Content-Length
haproxytechblog /
Last active Nov 25, 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
You can’t perform that action at this time.