Skip to content
Snippets Groups Projects
Unverified Commit 75d40ca5 authored by salty's avatar salty Committed by GitHub
Browse files

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

parent ea893f64
Branches
Tags
No related merge requests found
......@@ -44,7 +44,7 @@ backend docker-events
timeout server 0
frontend dockerfrontend
bind :2375
bind :::2375 v4v6
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_.-]+/start } { env(ALLOW_START) -m bool }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment