Skip to content

Instantly share code, notes, and snippets.

View dstpierre's full-sized avatar

Dominic St-Pierre dstpierre

View GitHub Profile

Script for adding a service in a HAProxy config file.

Here is the original haproxy.cfg (modified from here):

global
       log 127.0.0.1   local0
       log 127.0.0.1   local1 notice
       maxconn 4096
       user haproxy
       group haproxy