diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-21 18:08:47 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-21 18:08:47 +0000 |
commit | 5e2d2210559e74812ed116f399c6e588649b17a2 (patch) | |
tree | ff2d14860f27dcd72d921888e277d5f7ae901a8b | |
parent | 5b7bde210c0c938ca37711397e2bd2ecc507554a (diff) | |
download | infrastructure-5e2d2210559e74812ed116f399c6e588649b17a2.tar.gz |
frontend: Enable logging for HAProxy
Note that by default the systemd journal doesn't have any limit on the
amount of disk space it uses, and this system uses the default
configuration so it will eventually fill its own disk up with logs.
Switching to Ansible for provisioning this system should make it easier
to fix this.
-rw-r--r-- | frontend/haproxy.cfg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/haproxy.cfg b/frontend/haproxy.cfg index 3b5f021d..2ac0b850 100644 --- a/frontend/haproxy.cfg +++ b/frontend/haproxy.cfg @@ -3,12 +3,12 @@ global maxconn 4000 - chroot /var/lib/haproxy daemon pidfile /var/run/haproxy.pid user haproxy group haproxy + log /dev/log local0 stats socket /var/lib/haproxy/stats defaults @@ -17,6 +17,9 @@ defaults timeout client 50000ms timeout server 50000ms + log global + option httplog + frontend http-in bind *:80 |