-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket zmq not working with reverse proxy #21
Comments
Has anyone else gotten the websocket's working together with docker and nginx as a reverse proxy? |
I haven't gotten it to work with HaProxy either. Not sure about php-zmq, it doesn't seem to be maintained any more. At least not compared to the other zmq variants. |
Yes. Not sure what breaks it. I have two instances running in docker, and another two running in kubernetes. Same with both. No matter what I try, websockets does not work. |
@kennhardy I have a |
@digitalextremist oh, that sounds promising. Would you be able to share your config? Are you running out in docker as well? |
By the way, first impression: My configuration is very different because I have But looking closer at what you have, I am actually missing Will check back. |
@kennhardy I have since been able to get the part you are working with running with a reverse proxy, but I am starting to wonder if the background communications are either being dropped, or not happening. But the websocket itself is connected :) Still have this on my mind and returning with more soon hopefully. Anything change for you? |
I do see there is And when I turned on
Now it seems like the issue is that they never show up on the UX end. |
@digitalextremist my config is much like yours. do you get notifications and reminders or you also have problem? |
I was able to get this worked out @Shahin-rmz Would need to recall, but I think I completely redid my configuration after this point. |
It would be awesome if you share your docker compose, nginx Proxy manager config whenever you have time. |
Did anybody solve the websocket issue? I'm experiencing the same behind traefik. Would be great to get feedback. |
Example Traefik labels for Websocket container: # Traefik
traefik.enable: 'true'
traefik.docker.network: traefik-proxy # Use your own network
# Traefik for EspoCRM Websocket
traefik.http.routers.espocrm-ws.rule: Host(`example.com`) && PathPrefix(`/ws`) # Use your own domain
traefik.http.routers.espocrm-ws.entrypoints: websecure # Use your own entrypoint
traefik.http.routers.espocrm-ws.tls: 'true'
traefik.http.routers.espocrm-ws.tls.certresolver: cloudflare # Use your own certresolver
traefik.http.routers.espocrm-ws.service: espocrm-ws-svc
traefik.http.services.espocrm-ws-svc.loadbalancer.server.port: '8080' And in the environment: ESPOCRM_CONFIG_USE_WEB_SOCKET: 'true'
ESPOCRM_CONFIG_WEB_SOCKET_URL: wss://example.com/ws # Use your own domain
ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBSCRIBER_DSN: tcp://*:7777
ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBMISSION_DSN: tcp://websocket:7777 # Assuming the service name is 'websocket' |
Thanks a lot! |
When using docker, either configuring everything manually with a regular setup or when using the install script, websocket is not working. Something seems to be missing from a regular setup using php. It seems nginx are not able to understans or translate the zmq and hence not becoming a socket. Instead only reaching the endpoint over http(s).
After spending countless hours on this I decided to cash up for a VM to try it outside my current hosting setup and came to the same conclusion result. Or I might be missing something fundamental, if so I'd love some help.
"auto-install" with ssh:
The text was updated successfully, but these errors were encountered: