From 6d6d6bfc87ed320c458e770a0cea4dfaf26986d5 Mon Sep 17 00:00:00 2001 From: MarioZet23 <89627138+MarioZet23@users.noreply.github.com> Date: Sun, 6 Oct 2024 23:01:48 +0200 Subject: [PATCH] Process coolify.traefik.middlewares label --- bootstrap/helpers/docker.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.php index 7e902fcdd..397bce029 100644 --- a/bootstrap/helpers/docker.php +++ b/bootstrap/helpers/docker.php @@ -332,8 +332,12 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_ if (preg_match('/traefik\.http\.middlewares\.(.*?)(\.|$)/', $item, $matches)) { return $matches[1]; } + if (preg_match('/coolify\.traefik\.middlewares=(.*)/', $item, $matches)) { + return explode(',', $matches[1]); + } return null; - })->filter() + })->flatten() + ->filter() ->unique(); } foreach ($domains as $loop => $domain) {