.. _channelstream-setup-ini: Setup Channelstream Server ========================== Channelstream is a websocket server that handles all live communication inside |RCEE|. This Guide will explain how to set it up. .. important:: Before enabling channelstream module, make sure you have configured your Nginx or Apache webserver to support it. Please check our latest configuration examples for the http servers. `Nginx Config`_, `Apache Config`_ From Version 1.11.0 |RCC| has a new option called `enable-module` it can be used to enable certain new functionality. To enable channelstream, do the following: 1. Verify you have `[include]` statement inside your :file:`~/.rccontrol/supervisor/supervisord.ini`. If you're using new installation this step can be skipped. If you do not have such section, see :ref:`using-include-statement` for more details on how to add it. 2. Make sure your HTTP server has a configured path to handle websocket connections. Such path (in most cases `/_channelstream`) will be used to proxy channelstream connections. Note the server host and port from it, as we need to pass it during next step. Defaults are `host:127.0.0.1` and `port:9800`. If you used our default `Nginx Config`_ / `Apache Config`_ configuration examples such path is already configured. Otherwise please add them as in the above examples. 3. Run the `enable-module` for channelstream. Answer the questions in prompts. In almost all cases the defaults should be enough. This command only works on |RCEE| and |RCCE|. It should be executed against each instance you want channelstream to be enabled on. .. code-block:: bash rccontrol enable-module channelstream community-1 or rccontrol enable-module channelstream enterprise-1 4. Restart Supervisord, by running `rccontrol self-stop && rccontrol self-init` 5. Channelstream should be now enabled and configured. The `enable-module` will create a new configuration, run channelstream server, and reconfigure given instance .ini file. In Browser visit :menuselection:`My Account --> My Live Notifications` You can check your browser console if there any connection error shown. .. _Nginx Config: https://docs.rhodecode.com/RhodeCode-Enterprise/admin/nginx-config-example.html .. _Apache Config: https://docs.rhodecode.com/RhodeCode-Enterprise/admin/apache-conf-example.html