From 688325c7c12e88e7e4bf165d2d8801fe7da52c85 Mon Sep 17 00:00:00 2001 From: zzahkaboom24 Date: Tue, 24 Feb 2026 20:28:32 +0100 Subject: [PATCH] Update haproxy.cfg --- root/templates/haproxy.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/templates/haproxy.cfg b/root/templates/haproxy.cfg index a4fd70f..939ad41 100644 --- a/root/templates/haproxy.cfg +++ b/root/templates/haproxy.cfg @@ -28,6 +28,8 @@ frontend proxy 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 } http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/stop } { env(ALLOW_STOP) -m bool } + http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/pause } { env(ALLOW_PAUSE) -m bool } + http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/unpause } { env(ALLOW_RESUME) -m bool } http-request deny unless METH_GET || { env(POST) -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 }