1. My Caddy version (caddy -version
):
latest build from master
2. How I run Caddy:
Please provide all of the relevant information and DO NOT REDACT anything except passwords/keys. Thank you!
a. System environment:
OS, relevant versions, systemd? docker? etc.
Ubuntu 18.04
b. Command:
caddy --conf=Caddyfile
d. My complete Caddyfile:
mydomain.com {
log / stdout
errors ./errors.log
proxy /ws 127.0.0.1:8082 {
without /ws
websocket
}
}
also tried
mydomain.com {
log / stdout
errors ./errors.log
websocket /
} #and don't know what to do next, though like this connection has been established, but to a plain socket server, not to my own, that I'm running on port 8082
3. The problem I’m having:
Please describe the issue thoroughly enough so that anyone can reproduce the exact behavior you’re seeing. Be as specific as possible.
can’t configure caddy to proxy my wss server properly.
4. Error messages and/or full log output:
Please DO NOT REDACT any information except passwords/keys.
nothing fancy on caddys side, but on the front end in my console I see Error during WebSocket handshake: Unexpected response code: 400
with socket code 1006 and no log on the socket server when doing with proxy, and absolutely no output when doing websocket /