From f34cc159913d569110ecc3bad68150204e38315e Mon Sep 17 00:00:00 2001 From: rafapolo Date: Sat, 28 Mar 2026 12:20:36 +0100 Subject: [PATCH] fix: correct Caddyfile syntax for domain-based routing --- Caddyfile | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Caddyfile b/Caddyfile index bf81e5d..f21236e 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,22 +4,21 @@ } # ask.xn--2dk.xyz - Natural language to SQL TUI - ask.xn--2dk.xyz { - @websocket { - header Connection *Upgrade* - header Upgrade websocket + @ask_host { + host ask.xn--2dk.xyz + } + @ask_websocket { + header Connection *Upgrade* + header Upgrade websocket + } + handle @ask_host @ask_websocket { + reverse_proxy localhost:7682 { + flush_interval -1 } - - handle @websocket { - reverse_proxy localhost:7682 { - flush_interval -1 - } - } - - handle { - reverse_proxy localhost:7682 { - flush_interval -1 - } + } + handle @ask_host { + reverse_proxy localhost:7682 { + flush_interval -1 } }