fix: correct Caddyfile syntax for domain-based routing

This commit is contained in:
2026-03-28 12:20:36 +01:00
parent a6509d8b30
commit f34cc15991

View File

@@ -4,22 +4,21 @@
} }
# ask.xn--2dk.xyz - Natural language to SQL TUI # ask.xn--2dk.xyz - Natural language to SQL TUI
ask.xn--2dk.xyz { @ask_host {
@websocket { host ask.xn--2dk.xyz
header Connection *Upgrade* }
header Upgrade websocket @ask_websocket {
header Connection *Upgrade*
header Upgrade websocket
}
handle @ask_host @ask_websocket {
reverse_proxy localhost:7682 {
flush_interval -1
} }
}
handle @websocket { handle @ask_host {
reverse_proxy localhost:7682 { reverse_proxy localhost:7682 {
flush_interval -1 flush_interval -1
}
}
handle {
reverse_proxy localhost:7682 {
flush_interval -1
}
} }
} }