Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6ea9d177
Commit
6ea9d177
authored
Dec 18, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change headings to make TOC clearer.
parent
309b1112
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
docs/source/setup.rst
docs/source/setup.rst
+15
-16
No files found.
docs/source/setup.rst
View file @
6ea9d177
...
@@ -8,12 +8,9 @@ Setup and integration
...
@@ -8,12 +8,9 @@ Setup and integration
.. _what-you-will-need:
.. _what-you-will-need:
------------------
--------------
What you will need
------------------
An XMPP server
An XMPP server
==============
--------------
*Converse.js* implements `XMPP <http://xmpp.org/about-xmpp/>`_ as its
*Converse.js* implements `XMPP <http://xmpp.org/about-xmpp/>`_ as its
messaging protocol, and therefore needs to connect to an XMPP/Jabber
messaging protocol, and therefore needs to connect to an XMPP/Jabber
...
@@ -26,8 +23,9 @@ You can find a list of public XMPP servers/providers on `xmpp.net <http://xmpp.n
...
@@ -26,8 +23,9 @@ You can find a list of public XMPP servers/providers on `xmpp.net <http://xmpp.n
servers that you can set up yourself on `xmpp.org <http://xmpp.org/xmpp-software/servers/>`_.
servers that you can set up yourself on `xmpp.org <http://xmpp.org/xmpp-software/servers/>`_.
-------------------------
A BOSH Connection Manager
A BOSH Connection Manager
=========================
-------------------------
Your website and *Converse.js* use `HTTP <https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol>`_
Your website and *Converse.js* use `HTTP <https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol>`_
as protocol to communicate with the webserver. HTTP connections are stateless and usually shortlived.
as protocol to communicate with the webserver. HTTP connections are stateless and usually shortlived.
...
@@ -53,7 +51,7 @@ The demo on the `Converse.js homepage <http://conversejs.org>`_ uses a connectio
...
@@ -53,7 +51,7 @@ The demo on the `Converse.js homepage <http://conversejs.org>`_ uses a connectio
This connection manager is available for testing purposes only, please don't use it in production.
This connection manager is available for testing purposes only, please don't use it in production.
Overcoming cross-domain request restrictions
Overcoming cross-domain request restrictions
--------------------------------------------
============================================
Lets say your domain is *example.org*, but the domain of your connection
Lets say your domain is *example.org*, but the domain of your connection
manager is *example.com*.
manager is *example.com*.
...
@@ -78,7 +76,7 @@ Apache/Nginx which serves the connection manager under the same domain as your
...
@@ -78,7 +76,7 @@ Apache/Nginx which serves the connection manager under the same domain as your
website. This will remove the need for any cross-domain XHR support.
website. This will remove the need for any cross-domain XHR support.
For example:
For example:
~~~~~~~~~~~~
------------
Assuming your site is accessible on port ``80`` for the domain ``mysite.com``
Assuming your site is accessible on port ``80`` for the domain ``mysite.com``
and your connection manager manager is running at ``someothersite.com/http-bind``.
and your connection manager manager is running at ``someothersite.com/http-bind``.
...
@@ -90,7 +88,7 @@ the cross-domain restriction is ``mysite.com/http-bind`` and not
...
@@ -90,7 +88,7 @@ the cross-domain restriction is ``mysite.com/http-bind`` and not
Your ``nginx`` or ``apache`` configuration will look as follows:
Your ``nginx`` or ``apache`` configuration will look as follows:
Nginx
Nginx
~~~~~
-----
.. code-block:: nginx
.. code-block:: nginx
...
@@ -105,7 +103,7 @@ Nginx
...
@@ -105,7 +103,7 @@ Nginx
}
}
Apache
Apache
~~~~~~
------
.. code-block:: apache
.. code-block:: apache
...
@@ -116,13 +114,14 @@ Apache
...
@@ -116,13 +114,14 @@ Apache
</VirtualHost>
</VirtualHost>
Server-side authentication
==========================
.. _`session-support`:
.. _`session-support`:
Prebinding and Single Session Support
----------------------
-------------------------------------
Single Session Support
----------------------
Server-side authentication
==========================
It's possible to enable single-site login, whereby users already
It's possible to enable single-site login, whereby users already
authenticated in your website will also automatically be logged in on the chat server,
authenticated in your website will also automatically be logged in on the chat server,
...
@@ -196,7 +195,7 @@ These values are then passed to converse.js's ``initialize`` method.
...
@@ -196,7 +195,7 @@ These values are then passed to converse.js's ``initialize`` method.
Example code for server-side prebinding
Example code for server-side prebinding
---------------------------------------
=======================================
* PHP:
* PHP:
See `xmpp-prebind-php <https://github.com/candy-chat/xmpp-prebind-php>`_ by
See `xmpp-prebind-php <https://github.com/candy-chat/xmpp-prebind-php>`_ by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment