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 {
|
||||
@websocket {
|
||||
@ask_host {
|
||||
host ask.xn--2dk.xyz
|
||||
}
|
||||
@ask_websocket {
|
||||
header Connection *Upgrade*
|
||||
header Upgrade websocket
|
||||
}
|
||||
|
||||
handle @websocket {
|
||||
handle @ask_host @ask_websocket {
|
||||
reverse_proxy localhost:7682 {
|
||||
flush_interval -1
|
||||
}
|
||||
}
|
||||
|
||||
handle {
|
||||
handle @ask_host {
|
||||
reverse_proxy localhost:7682 {
|
||||
flush_interval -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# db.xn--2dk.xyz - DuckDB SQL shell
|
||||
handle /login {
|
||||
|
||||
Reference in New Issue
Block a user