Giter VIP home page Giter VIP logo

jiconop's Introduction

Jitsi Connection Optimization

A server side component node.js application that listens for http requests, creates bosh connection on every request and returns rid, sid and jid in the response. That way the client can receive the connection details with a single AJAX request. Than the client can call Strophe.attach with the received rid, sid and jid and start using that connection. This mechanism can speed up the connecting process.

Installation

TBD

Building the sources

npm install

Running

node index.js

Deployment

sudo su
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
apt-get install -y nodejs
wget -qO - https://repo.jitsi.net/debian/unstable/archive.key | sudo apt-key add -
echo 'deb https://jitsi:[email protected]/debian unstable/' > /etc/apt/sources.list.d/jitsi-backup.list
apt-get update
apt-get install jiconop
service jiconop start

Make sure you meet the following steps:

  • you do not have /etc/nginx/sites-enabled/default (delete it)
  • nginx config:
#server {
#    listen 80;
#    server_name <your-domain>;
#    return 301 https://$host$request_uri;
#}
server {
    listen 443 ssl default_server;
    listen 80 default_server;
    #server_name <your-domain>;
........
.....
    # BOSH
    location /http-bind {
        proxy_pass      http://localhost:5280/http-bind;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host beta.meet.jit.si;
    }
}
  • config.js add property externalConnectUrl:"///http-pre-bind"

jiconop's People

Contributors

damencho avatar hristoterezov avatar lyubomir avatar saghul avatar vol4iniche avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.