From 1c227e237392713ec7ecf3f0925ba8140dcc9297 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 23 Oct 2023 15:43:32 +0200 Subject: [PATCH] log the http requests when asked. --- templates/haproxy.cfg.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index 92cda70..3aafbce 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -46,6 +46,8 @@ defaults timeout check {{ haproxy_check_timeout }} timeout http-request 10s # slowloris protection default-server inter 3s fall 2 rise 2 slowstart 60s + option dontlognull + option log-health-checks # Needed to preserve the stick tables peers mypeers @@ -79,6 +81,7 @@ frontend http_{{ docker_swarm_haproxy_plain_http_port }} mode http option http-keep-alive + option httplog option forwardfor {% for srv in docker_swarm_haproxy_plain_http_services %} @@ -104,6 +107,7 @@ frontend http mode http option http-keep-alive + option httplog option forwardfor # HSTS (63072000 seconds) http-response set-header Strict-Transport-Security max-age=63072000