ADD unix-socket

This commit is contained in:
Cell 2018-02-17 13:02:51 +01:00
parent 6e7cec107e
commit ed1ab31983
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ ENV AUTH=0 \
VERSION=1 \
VOLUMES=0
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
VOLUME /run/docker-filtered
# Metadata
ARG VCS_REF

View File

@ -40,7 +40,7 @@ backend dockerbackend
server dockersocket /var/run/docker.sock
frontend dockerfrontend
bind :2375
bind :2375,/run/docker-filtered/docker.sock
http-request deny unless METH_GET || { env(POST) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/auth } ! { env(AUTH) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/build } ! { env(BUILD) -m bool }