From bf7ce20f7bdf17be1f0901213b42ef914b8c172c Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Sat, 17 Jan 2026 19:42:50 -0700 Subject: [PATCH] fix(caddy): add http block for welcome page to prevent redirect loop when accessing welcome page through cloudflare tunnel, caddy was redirecting http to https, causing an infinite redirect loop. adding an explicit http block prevents automatic https redirect. --- Caddyfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Caddyfile b/Caddyfile index cf573d4..5b81dc4 100644 --- a/Caddyfile +++ b/Caddyfile @@ -162,6 +162,17 @@ https://{$NEO4J_HOSTNAME}:7687 { } # Welcome Page (Post-install dashboard) +# HTTP block for Cloudflare Tunnel access (prevents redirect loop) +http://{$WELCOME_HOSTNAME} { + basic_auth { + {$WELCOME_USERNAME} {$WELCOME_PASSWORD_HASH} + } + root * /srv/welcome + file_server + try_files {path} /index.html +} + +# HTTPS block for direct access {$WELCOME_HOSTNAME} { basic_auth { {$WELCOME_USERNAME} {$WELCOME_PASSWORD_HASH}