Skip to content

Commit 2142f8a

Browse files
add ROUTER_SLOWLORIS_TIMEOUT enviroment variable to default router image
Using the HAProxy router to impliement basic DDOS protection. When the enviroment variable ROUTER_SLOWLORIS_TIMEOUT is set it limits the amount of time a client has to send their whole HTTP request or HAProxy will shut down the connection BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1328037 changelog - intial commit - changed to default to 10s timeout
1 parent 73cc71c commit 2142f8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

images/router/haproxy/conf/haproxy-config.template

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defaults
3939
option httplog
4040
log global
4141
{{ end }}
42+
timeout http-request {{env "ROUTER_SLOWLORIS_TIMEOUT" "10s" }}
4243
timeout connect 5s
4344
timeout client 30s
4445
timeout server 30s

0 commit comments

Comments
 (0)