Skip to content

Commit

Permalink
Merge pull request #98 from xstefanox/fix/events-timeout
Browse files Browse the repository at this point in the history
fix: no timeout for events route
  • Loading branch information
pedrobaeza authored Sep 25, 2023
2 parents eb918c2 + 0185748 commit bb675df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ defaults
backend dockerbackend
server dockersocket $SOCKET_PATH

backend docker-events
server dockersocket $SOCKET_PATH
timeout server 0

frontend dockerfrontend
bind :2375
http-request deny unless METH_GET || { env(POST) -m bool }
Expand Down Expand Up @@ -68,3 +72,5 @@ frontend dockerfrontend
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/volumes } { env(VOLUMES) -m bool }
http-request deny
default_backend dockerbackend

use_backend docker-events if { path,url_dec -m reg -i ^(/v[\d\.]+)?/events }

0 comments on commit bb675df

Please sign in to comment.