@@ -70,8 +70,8 @@ defaults
70
70
71
71
{{ if (matchPattern "true|TRUE" (env "ROUTER_ENABLE_COMPRESSION" "false")) }}
72
72
compression algo gzip
73
- {{ with $mimeType := (env "ROUTER_COMPRESSION_MIME" "text/html text/plain text/css") }}
74
- compression type {{$mimeType}}
73
+ {{ with $mimeType := (env "ROUTER_COMPRESSION_MIME" "text/html text/plain text/css") }}
74
+ compression type {{$mimeType}}
75
75
{{end}}
76
76
{{end}}
77
77
@@ -85,7 +85,7 @@ listen stats :1936
85
85
monitor-uri /healthz
86
86
{{ if .SyncedAtLeastOnce }}
87
87
# This uri being configured indicates that routing configuration has been synchronized.
88
- monitor-uri /readyz
88
+ monitor-uri /ready
89
89
{{ end }}
90
90
91
91
{{ if and (and (ne .StatsUser "") (ne .StatsPassword "")) (gt .StatsPort 0) }}
@@ -335,19 +335,19 @@ backend be_edge_http_{{$cfgIdx}}
335
335
{{ if matchPattern "true|TRUE" (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections") }}
336
336
stick-table type ip size 100k expire 30s store conn_cur,conn_rate(3s),http_req_rate(10s)
337
337
tcp-request content track-sc2 src
338
- {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp")) }}
338
+ {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp")) }}
339
339
tcp-request content reject if { src_conn_cur ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp" }} }
340
340
{{ else }}
341
341
# concurrent TCP connections not restricted
342
342
{{ end }}
343
343
344
- {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp")) }}
344
+ {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp")) }}
345
345
tcp-request content reject if { src_conn_rate ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp" }} }
346
346
{{ else }}
347
347
#TCP connection rate not restricted
348
348
{{ end }}
349
349
350
- {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http")) }}
350
+ {{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http")) }}
351
351
tcp-request content reject if { src_http_req_rate ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http" }} }
352
352
{{ else }}
353
353
#HTTP request rate not restricted
0 commit comments