Skip to content

An RPM spec file to build and install the is HAProxy TCP/HTTP reverse proxy.

Notifications You must be signed in to change notification settings

boogieshafer/haproxy-rpm

 
 

Repository files navigation

haproxy-rpm

A build process to create a more enhanced haproxy RPM using mock

HTTPS enabled using self-signed certificate HTTP compression enabled up to date PCRE included additional scripts for OCSP support and cert management default config incorporating suggested cipher suite

updated for haproxy version 1.5.19 and PCRE version 8.42

RPM is for use on linux kernel 2.6.28+

To setup your build environment (if necessary):

Make sure EPEL repo is enabled

Install build tools

sudo yum upgrade -y
sudo yum groupinstall -y development
sudo yum install -y fedora-packager
rpmdev-setuptree

Add build user to mock group

sudo usermod -a -G mock $LOGNAME

Add additional prerequisites for haproxy compile:

sudo yum install -y pcre-devel openssl-devel

To build:

git clone https://github.com/boogieshafer/haproxy-rpm.git
cd haproxy-rpm
./build-haproxy.1.5.x.sh

Notes: PCRE is statically linked into this haproxy build this will workaround older distro versions of PCRE http://www.pcre.org

config is in /etc/haproxy/haproxy.cfg

this rpm will generate a selfsigned certificate for HTTPS on install

Manage: https://haproxy_host.domain.com/haproxy_stats

administrative permissions username: admin password: AdMiN123

read only permissions username: haproxy password: haproxy

regular haproxy usage recommendations:

to "preflight-check" a new config sudo /etc/init.d/haproxy check

       to apply new config with minimal interruption to clients
   sudo /etc/init.d/haproxy reload

       to perform a full reset on haproxy
   sudo /etc/init.d/haproxy restart

TODO: native systemd init script for newer platforms

reference: http://www.haproxy.org

initial rpm spec file came from https://github.com/nmilford/rpm-haproxy

About

An RPM spec file to build and install the is HAProxy TCP/HTTP reverse proxy.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%