Skip to content

Commit

Permalink
Update haproxy.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Nov 27, 2023
1 parent ea893f6 commit 922682c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 922682c

Please sign in to comment.