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