OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions WebSockets, apache2 and https

This topic contains 4 replies, has 4 voices, and was last updated by  Dmitriy Pasechnik 6 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25073

    amcastror
    Participant

    Hi, I just installed OroCrm on my Ubuntu over https. My question is if there is a way to connect to the websocket server (clank) with this kind of installation.

    A little more info:
    On the same server, I got a simple chat app working with ClankBundle, but no https, and it works fine. After doing this, I tried to do the same thing but WITH https. To my surprise, the only way (I could find) to make this work is to use ProxyPass on apache.

    So, what I ended up doing was connecting like this:

    And adding this to the apache proxy_wstunnel.load:

    Of course, the socket server is running with that configuration, and the chat works.

    Finally, the question is how can I tell orocrm to use the “/websocket” at the end of the connection string, or if there is another way to do this (other than working with nginx, which I know handles this)

    Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #25074

    Hryhorii Hrebiniuk
    Participant

    Hello @amcastror,

    You are doing right using proxy for this purpose. But instead of proxing by path ‘/websocket’, you have to proxy by port (8081 -> 8080) or host (secure.crm.mydomain.cl -> crm.mydomain.cl).

    #25075

    amcastror
    Participant

    Thanks for the reply!

    I’m assuming that only the websocket should use the proxy, not the entire site. That’s why I’m using the mod_proxy_wstunnel module and not the mod_proxy (maybe I have an error of concept). At the apache website for this module the information is very limited and doesn’t provide any information on how to work with (for example) ports.

    Do you have any examples or references that I might use?

    Thanks a lot again!

    #25076

    adriwan_kenoby
    Participant

    Hi @Hryhorii Hrebiniuk,

    I have always the following message error on the js console of my browser:

    Firefox ne peut établir de connexion avec le serveur à l’adresse wss://dev.orocrm.sinabs.fr/ws?ticket=5a8ed6463b3c88.30498366%3Badmin%3BZGFhZmE2MTVhMjNlNDEyNg%3D%3D%3B2018-02-22T15%3A40%3A06%2B01%3A00.

    This not happen when I use http.

    My configuration:

    And the appache config of the VHost:

    I don’t understand which configuration I have to add to apache …

    #25077

    Dmitriy Pasechnik
    Participant

    Hi

    We have an examples of how to properly configure wss via reverse proxy using Nginx.
    https://github.com/oroinc/platform/tree/master/src/Oro/Bundle/SyncBundle#configuration-of-secure-sslwss-connection

    Check it, maybe it will help

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top