mirror of
https://github.com/Tecnativa/docker-socket-proxy
synced 2024-12-21 22:28:07 +00:00
Merge pull request #98 from xstefanox/fix/events-timeout
fix: no timeout for events route
This commit is contained in:
commit
bb675df9b3
@ -39,6 +39,10 @@ defaults
|
|||||||
backend dockerbackend
|
backend dockerbackend
|
||||||
server dockersocket $SOCKET_PATH
|
server dockersocket $SOCKET_PATH
|
||||||
|
|
||||||
|
backend docker-events
|
||||||
|
server dockersocket $SOCKET_PATH
|
||||||
|
timeout server 0
|
||||||
|
|
||||||
frontend dockerfrontend
|
frontend dockerfrontend
|
||||||
bind :2375
|
bind :2375
|
||||||
http-request deny unless METH_GET || { env(POST) -m bool }
|
http-request deny unless METH_GET || { env(POST) -m bool }
|
||||||
@ -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 allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/volumes } { env(VOLUMES) -m bool }
|
||||||
http-request deny
|
http-request deny
|
||||||
default_backend dockerbackend
|
default_backend dockerbackend
|
||||||
|
|
||||||
|
use_backend docker-events if { path,url_dec -m reg -i ^(/v[\d\.]+)?/events }
|
||||||
|
Loading…
Reference in New Issue
Block a user