1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2025-03-11 03:46:04 +00:00

Allow delete with env arg

This commit is contained in:
mxMeeple 2023-11-15 16:40:07 +00:00 committed by GitHub
parent 41d6a276fd
commit 9efa68c25b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ backend docker-events
frontend dockerfrontend
bind :2375
http-request deny unless METH_GET || { env(POST) -m bool }
http-request deny unless METH_GET || { env(POST) -m bool } || { env(DELETE) -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\.]+)?/build } { env(BUILD) -m bool }