1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2024-11-30 11:58:18 +00:00

[IMP] Bind to IPv4 and IPv6 in haproxy (#108)

This commit is contained in:
salty 2023-11-28 09:34:24 +01:00 committed by GitHub
parent ea893f64f5
commit 75d40ca5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ backend docker-events
timeout server 0 timeout server 0
frontend dockerfrontend frontend dockerfrontend
bind :2375 bind :::2375 v4v6
http-request deny unless METH_GET || { env(POST) -m bool } http-request deny unless METH_GET || { env(POST) -m bool }
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/((stop)|(restart)|(kill)) } { env(ALLOW_RESTARTS) -m bool } http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/((stop)|(restart)|(kill)) } { env(ALLOW_RESTARTS) -m bool }
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/start } { env(ALLOW_START) -m bool } http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/start } { env(ALLOW_START) -m bool }