traefik broken wss wwwwwwwwww #8528
Unanswered
vectorez
asked this question in
Self hosted
Replies: 1 comment 1 reply
-
@vectorez This is an issue with how the reverse proxy is setup. If you could share the configuration, I can help. Moving this to discussions as it is not a bug. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Describe the bug
Setting FORCE_SSL=true in Chatwood Self-Hosted (Docker) breaks WebSockets
To Reproduce
Steps to reproduce the behavior:
Setting FORCE_SSL=true in .env file (as described on https://www.chatwoot.com/docs/self-hosted/deployment/docker )
Adding a WebSite Channel and ingerating in
WebChat is not working, because wss:// is getting redirected with Status 301 to https:// and the WebChat does not seem to handle redirects
Browser logs
-- Console:
action_cable.js:241 WebSocket connection to 'wss://<domain.tld>/cable' failed: Error during WebSocket handshake: Unexpected response code: 404
--- Network:
GET /cable HTTP/1.1
Host: <domain.tld>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: /
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Sec-WebSocket-Version: 13
Origin: https://<domain.tld>
Sec-WebSocket-Protocol: actioncable-v1-json, actioncable-unsupported
Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: OVGgLOlWwrbiF/IcmC7D7w==
Connection: keep-alive, Upgrade
Cookie: StickyCookie=63c648c9568b113d
Sec-Fetch-Dest: websocket
Sec-Fetch-Mode: websocket
Sec-Fetch-Site: same-origin
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Location: https://<domain.tld>/cable
Date: Thu, 06 Jan 2022 22:02:52 GMT
Transfer-Encoding: chunked
Environment
Self Hosted (Docker) with Traefik v2 as Forward Proxy in a testing environment
Tested with recent Firefox and Chromium.
Everything works fine with
FORCE_SSL=false in env file.
Took me some time, because i thought the issue was caused by traefik. But setting the FORCE_SSL to true breaks my WebChat reproducibly.
To Reproduce
111111111111111
Expected behavior
No response
Environment
Docker
Cloud Provider
None
Platform
Browser
Operating system
No response
Browser and version
No response
Docker (if applicable)
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions