fix: correct Caddyfile syntax for domain-based routing
This commit is contained in:
13
Caddyfile
13
Caddyfile
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user