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}