Giter Club home page Giter Club logo

anisync's Introduction

anisync

A service to synchronize media playback between browsers.

Dependencies

Installation

To to install all necessary Node.js packages, type:

npm install

in this project's root directory.
Run with:

node app.js

Configuration

The config.json has 2 identical blocks, one for development and one for production environment which are structured as follows:

{
  "web" : {
    "host": "localhost", //address the web server should bind to
    "http": {
      "port": 80 //port for unencrypted traffic
    },
    "https": { //optional, but recommended
      "enabled": false, //will also redirect all unencrypted traffic to https
      "hsts": true, //HTTP Strict Transport Security
      "port": 443, //port for encrypted traffic
      "certificate": { //SSL certificate is required for https to work
        "key": "",
        "cert": ""
      }
    },
    "trustedProxies": [] //List of trusted reverse proxies. X-Real-IP header has to be set.
  },
  "mongodb": {
    "host": "localhost", //address of the MongoDB server
    "port": 27017, //port of MongoDB server
    "database": "sync", //database name (will be created automatically)
    "user": "", //MongoDB login username, if necessary
    "password": "" //MongoDB login password, if necessary
  },
  "youtubedl": {
    "bin": "", //Location of the youtube-dl binary. Defaults to "youtube-dl".
    "proxy": { //optional HTTP proxy for Youtube-DL (e.g. to bypass IP blocks)
      "enabled": false,
      "domains": ["youtube.com"], //list of domains that should be routed through the proxy
                                  //if empty and enabled: true, route all requests through proxy
      "host": "localhost", //address of proxy server
      "port": 8118 //port of proxy server
    }
  },
  "sessionSecret": "changeme", //secret of session cookies, choose a long and secure string
  "google": {
    "analytics": { //optional Google analytics tracking code
      "enabled": false,
      "trackingID": "" //tracking ID of property
    },
    "adsense": { //optional Google adsense ads
      "enabled": false,
      "adSlot": "",
      "adClient": "" 
    }
  },
  "piwik": { //optional Piwik tracking code
    "enabled": false,
    "url": "", //Piwik report URL
    "siteId": 1 //Piwik site ID
  }
}

anisync's People

Contributors

yuri-qq avatar dependabot[bot] avatar nilsding 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.