From 263aaaef9f3e42fd64368a803de95d7b74920b2b Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Wed, 14 May 2025 13:04:07 +0200 Subject: [PATCH] Disallow robots --- lb-common/overlay/opt/frontend/config/bankidpqa/haproxy.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lb-common/overlay/opt/frontend/config/bankidpqa/haproxy.j2 b/lb-common/overlay/opt/frontend/config/bankidpqa/haproxy.j2 index 1d47059..b1b72e0 100644 --- a/lb-common/overlay/opt/frontend/config/bankidpqa/haproxy.j2 +++ b/lb-common/overlay/opt/frontend/config/bankidpqa/haproxy.j2 @@ -15,6 +15,9 @@ frontend {{ site_name }} timeout http-request 10s timeout http-keep-alive 4s + + http-request return status 200 content-type "text/plain" file "/opt/frontend/config/common/robots.txt" hdr "cache-control" "no-cache" if { path /robots.txt } + option forwardfor http-request set-header X-Forwarded-Proto https http-request set-header client-cert %{+Q}[ssl_c_der,base64]