log the http requests when asked.

This commit is contained in:
Andrea Dell'Amico 2023-10-23 15:43:32 +02:00
parent 7e758c8f16
commit 1c227e2373
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ defaults
timeout check {{ haproxy_check_timeout }} timeout check {{ haproxy_check_timeout }}
timeout http-request 10s # slowloris protection timeout http-request 10s # slowloris protection
default-server inter 3s fall 2 rise 2 slowstart 60s default-server inter 3s fall 2 rise 2 slowstart 60s
option dontlognull
option log-health-checks
# Needed to preserve the stick tables # Needed to preserve the stick tables
peers mypeers peers mypeers
@ -79,6 +81,7 @@ frontend http_{{ docker_swarm_haproxy_plain_http_port }}
mode http mode http
option http-keep-alive option http-keep-alive
option httplog
option forwardfor option forwardfor
{% for srv in docker_swarm_haproxy_plain_http_services %} {% for srv in docker_swarm_haproxy_plain_http_services %}
@ -104,6 +107,7 @@ frontend http
mode http mode http
option http-keep-alive option http-keep-alive
option httplog
option forwardfor option forwardfor
# HSTS (63072000 seconds) # HSTS (63072000 seconds)
http-response set-header Strict-Transport-Security max-age=63072000 http-response set-header Strict-Transport-Security max-age=63072000