Skip to content

Commit 9200f04

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
1 parent 73cc71c commit 9200f04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ defaults
3838
{{ if ne (env "ROUTER_SYSLOG_ADDRESS" "") ""}}
3939
option httplog
4040
log global
41+
{{ end }}
42+
{{ with (env "ROUTER_SLOWLORIS_TIMEOUT" "") }}
43+
timeout http-request {{.}}
4144
{{ end }}
4245
timeout connect 5s
4346
timeout client 30s

0 commit comments

Comments
 (0)