fix: simplify Caddyfile handle directives
This commit is contained in:
@@ -7,15 +7,10 @@
|
|||||||
@ask_host {
|
@ask_host {
|
||||||
host ask.xn--2dk.xyz
|
host ask.xn--2dk.xyz
|
||||||
}
|
}
|
||||||
@ask_websocket {
|
@ask_ws {
|
||||||
header Connection *Upgrade*
|
header Connection *Upgrade*
|
||||||
header Upgrade websocket
|
header Upgrade websocket
|
||||||
}
|
}
|
||||||
handle @ask_host @ask_websocket {
|
|
||||||
reverse_proxy localhost:7682 {
|
|
||||||
flush_interval -1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
handle @ask_host {
|
handle @ask_host {
|
||||||
reverse_proxy localhost:7682 {
|
reverse_proxy localhost:7682 {
|
||||||
flush_interval -1
|
flush_interval -1
|
||||||
|
|||||||
Reference in New Issue
Block a user