Vines: Difference between revisions

From diaspora* project wiki
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT [[Integration/Chat]]
{{Note|Report issues and suggestions to the Vines server at}}
{{Serious|This page moved to [[Integration/Chat]]}}
{{Note|The pull request integrating this with Diaspora is at}}
This wiki-page is about setting up [ Vines] on your Diaspora installation.
{{Quote|Vines is an XMPP chat server that connects you with large clusters of machines as easily as chatting with a friend.<br>
It's a new, simpler way to manage your servers in the cloud or the data center.|}}
= Installation =
== Set up branch ==
Checkout or merge XMPP chat feature branch from zauberstuhl/diaspora.git:
<syntaxhighlight lang="bash">
git remote add zauberstuhl
git fetch zauberstuhl && git checkout -b xmpp_chat_feature zauberstuhl/xmpp_chat_feature
{{Serious|xmpp_chat_feature-branch is based upon Diaspora develop-branch!}}
== Update ==
All required dependencies are included in your <tt>Gemfile</tt>. The only thing you have to do now is follow the [[Updating|Update guide]]!
In short, execute following:
<syntaxhighlight lang="bash">
export RAILS_ENV=development
bundle install
bundle exec rake db:migrate
= Configuration =
You'll find all required configuration parameters in <tt>diaspora.yml.example</tt>. If you'd like to activate the chat feature
you have to copy paste the chat section from <tt>diaspora.yml.example</tt> to your actual <tt>diaspora.yml</tt> configuration file and
activate the chat globally:
<syntaxhighlight lang="yaml">
    enabled: true
If you have already a working XMPP server and need only the front-end:
<syntaxhighlight lang="yaml">
    enabled: true
      enabled: false
It is also possible to configure the port and address of the client-to-server, server-to-server and the BOSH service.
You'll also find the required parameters in <tt>diaspora.yml.example</tt> with a small description.
== Certificates ==
{{Serious|For encrypted communication we need a cerificate and the related key.<br>}}
Put your files in the vines-cert folder, you can configure the path in diaspora.yml under the chat section.
The default path is <code>/path_to_diaspora_installation/config/vines/</code>.<br>
Also the domain name should be included in the file name e.g.:
If you have no certificate and want to generate a self-signed you can do that with vines, too.
Just execute in you diaspora environment <code>bundle exec vines cert</code> and you should be good to go ..
{{Note|If you use your server in a development mode, think about enabling acceptance of self-signed certificates in your diaspora.yml!}}
= Run it =
If you are finished configuring the chat server you can start Diaspora as normal:
<syntaxhighlight lang="bash">
Log into Diaspora and you should see the web client in the right corner.
You can also log into it with your favorite desktop client like Pidgin.
For that use your Diaspora ID and your Diaspora password.
= FAQ =
== I received a warning on startup!? ==
<syntaxhighlight lang="bash">
You enabled the chat feature but haven't configured BOSH! That
could lead to mixed-content problems with the http clients. Please
think about editing your proxy configuration as described in:
The internal xmpp server does not support https and<br />
even if we implement it, we would ran into certificate issues.<br />
The problem with mixed-content is described here:
The easiest way of avoiding certificate and mixed-content issues is to use a proxy (see apache and nginx section below)!
If you finished configuring your proxy settings you also have to adjust diaspora.yml!<br />
For my examples below, it would look like this:
<syntaxhighlight lang="yaml">
        proxy: true
        bind: '/http-bind'
=== Apache2 ===
<syntaxhighlight lang="apache">
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/http-bind
RewriteRule ^/(http\-bind.*)$ balancer://chat%{REQUEST_URI} [P,QSA,L]
RewriteRule ^/(.*)$ balancer://diaspora%{REQUEST_URI} [P,QSA,L]
<Proxy balancer://diaspora>
<Proxy balancer://chat>
=== Nginx ===
This is <b>NOT</b> tested. Please let me know if there are any problems with the configuration settings!
<syntaxhighlight lang="bash">
upstream chat_cluster {
  server localhost:5280;
location /http-bind {
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Proto https;
  proxy_redirect off;
  client_max_body_size 4M;
  client_body_buffer_size 128K;
  proxy_pass http://chat_cluster;
= Debugging =
On default Vines will log to <tt>log/vines.log</tt> and has a log level of <tt>info</tt> set.
Set the logging level to <tt>debug</tt>, <tt>info</tt>, <tt>warn</tt>, <tt>error</tt>, or <tt>fatal</tt>. The <tt>debug</tt> level logs all XML sent and received by the server.
<syntaxhighlight lang="yaml">
        file: 'log/vines.log'
        level: 'debug'
[[Category:Podmin]] [[Category:Installation]]

Latest revision as of 10:08, 17 June 2016

Redirect to:

WarningWarning:This page moved to Integration/Chat