mirror of
https://github.com/Tecnativa/docker-socket-proxy
synced 2025-07-05 14:52:35 +00:00
Merge ab466fa9f2
into 41d6a276fd
This commit is contained in:
commit
7aaf3d47e9
@ -27,5 +27,6 @@ ENV ALLOW_RESTARTS=0 \
|
|||||||
SYSTEM=0 \
|
SYSTEM=0 \
|
||||||
TASKS=0 \
|
TASKS=0 \
|
||||||
VERSION=1 \
|
VERSION=1 \
|
||||||
VOLUMES=0
|
VOLUMES=0 \
|
||||||
|
BIND=":2375"
|
||||||
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
|
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
|
||||||
|
@ -44,7 +44,7 @@ backend docker-events
|
|||||||
timeout server 0
|
timeout server 0
|
||||||
|
|
||||||
frontend dockerfrontend
|
frontend dockerfrontend
|
||||||
bind :2375
|
bind $BIND
|
||||||
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\.]+)?/auth } { env(AUTH) -m bool }
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/auth } { env(AUTH) -m bool }
|
||||||
|
Loading…
Reference in New Issue
Block a user