Fixed reverse proxy websockets
This commit is contained in:
13
Caddyfile
13
Caddyfile
@@ -3,23 +3,16 @@
|
||||
}
|
||||
|
||||
|
||||
# App entrypoint
|
||||
http://* {
|
||||
@websockets {
|
||||
header Connection *Upgrade*
|
||||
header Upgrade websocket
|
||||
}
|
||||
handle @websockets {
|
||||
reverse_proxy http://server {
|
||||
import reverse_proxy_headers
|
||||
}
|
||||
}
|
||||
|
||||
# Redirect RPC calls (both HTTP and WebSockets) to the backend
|
||||
handle /rpc* {
|
||||
reverse_proxy http://server {
|
||||
import reverse_proxy_headers
|
||||
}
|
||||
}
|
||||
|
||||
# Or serve the UI
|
||||
handle {
|
||||
reverse_proxy http://webui {
|
||||
import reverse_proxy_headers
|
||||
|
||||
Reference in New Issue
Block a user