From 4657f5ba498794ef3337a1ebc180de14dab471ef Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 16 Apr 2025 16:38:54 +0300 Subject: [PATCH] feat: add image inspect rule Signed-off-by: Andrey Borysenko --- haproxy.cfg.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/haproxy.cfg.template b/haproxy.cfg.template index f81322b..b256175 100644 --- a/haproxy.cfg.template +++ b/haproxy.cfg.template @@ -42,6 +42,8 @@ frontend docker_engine # docker system _ping http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/_ping$ } METH_GET + # docker inspect image + http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/images/.*/json } METH_GET # container inspect: GET containers/%s/json http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/json } METH_GET # container inspect: GET containers/%s/logs