From 18ea6f6b2ebb31bb8839fc2e6c909a06f9b5e385 Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 23 Oct 2026 19:30:55 +0200 Subject: [PATCH] fixed caddy file --- caddy/Caddyfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 62417fa..b216ac4 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -56,12 +56,17 @@ game.marvinkrausser.com { reverse_proxy wizard_website:8082 } - # handle_path strips the prefix, so the backends see "/..." only. - handle_path /actionblocks/website /actionblocks/website/* { + # handle_path takes a single path, so use named matchers to also match the + # bare prefix. The prefixes are stripped, so the backends see "/..." only. + @actionblocks_website path /actionblocks/website /actionblocks/website/* + handle @actionblocks_website { + uri strip_prefix /actionblocks/website reverse_proxy actionblocks-website:80 } - handle_path /actionblocks/server /actionblocks/server/* { + @actionblocks_server path /actionblocks/server /actionblocks/server/* + handle @actionblocks_server { + uri strip_prefix /actionblocks/server reverse_proxy actionblocks-server:8080 }