Browse Source

New post - haproxy build with debian style configuration

unreleased_contents
Blagovest Petrov 9 years ago
parent
commit
890ad7ee9b
  1. 28
      source/_posts/2016-01-07-HAProxy-build-with-more-Debian-like-configuration.md
  2. BIN
      source/_posts/2016-01-07-HAProxy-build-with-more-Debian-like-configuration/haproxy.png

28
source/_posts/2016-01-07-HAProxy-build-with-more-Debian-like-configuration.md

@ -0,0 +1,28 @@
title: HAProxy build with more Debian-like configuration
date: 2016-01-07 14:22:45
tags: HAProxy
---
I made a HAProxy build with Debian-style config file because some of the *haproxy.cfg* files on my servers became really big.
HAProxy has an option to include multiple config files as a command line arguent, like this: *haproxy -f haproxy.cfg -f haproxy2.cfg -f...etc*.
<!-- more -->
{% asset_img haproxy.png HAProxy /etc directory tree %}
So, the algoritm is like:
1. Read /etc/haproxy/haproxy.cfg (The global settings)
2. Read /etc/haproxy/haproxy.cfg.d/http/http.cfg (Global settings for HTTP)
3. Read /etc/haproxy/haproxy/cfg.d/http/frontend-* (HTTP frontends)
4. Read /etc/haproxy/haproxy.cfg.d/http/backend-* (HTTP backends)
5. Read /etc/haproxy/haproxy.cfg.d/tcp/tcp.cfg (Global settings for TCP)
... and the same as for HTTP
### TODO:
* PPA:
I have some problems with *Quilt* and *debuild* but *dpkg-buildpackage* runs?
* Systemd script.
## [Download](https://github.com/eniac111/haproxy-debianconfig/releases/tag/1.6.3)

BIN
source/_posts/2016-01-07-HAProxy-build-with-more-Debian-like-configuration/haproxy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Loading…
Cancel
Save