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,24 +4,23 @@
} }
# 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
}
@ask_websocket {
header Connection *Upgrade* header Connection *Upgrade*
header Upgrade websocket header Upgrade websocket
} }
handle @ask_host @ask_websocket {
handle @websocket {
reverse_proxy localhost:7682 { reverse_proxy localhost:7682 {
flush_interval -1 flush_interval -1
} }
} }
handle @ask_host {
handle {
reverse_proxy localhost:7682 { reverse_proxy localhost:7682 {
flush_interval -1 flush_interval -1
} }
} }
}
# db.xn--2dk.xyz - DuckDB SQL shell # db.xn--2dk.xyz - DuckDB SQL shell
handle /login { handle /login {