Coder Social home page Coder Social logo

consultingforge / vod-storageserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wwbn/avideo-storage

0.0 0.0 0.0 5.65 MB

Storage Server for AVideo Platform Open-Source

Shell 0.05% JavaScript 32.92% PHP 56.37% XSLT 4.98% CSS 2.71% Hack 0.06% HTML 2.84% Batchfile 0.02% Dockerfile 0.05%

vod-storageserver's Introduction

AVideo-Storage

AVideo Simple Storage is a Storage Service for the AVideo Platform Instances.

It is designed to make web-scaleble storage.

ie with this service you will have unlimited storage capacity and low cost.

For example when one of your storage is full, just plug in one more storage and your videos will continue to be saved to the new storage.

This service is designed to replace our current S3, BackBlaze B2 and FTP plugins, but with much more integration with our services, besides you will have no restriction on the amount of storages used.

You can install as many storage nodes as you want, without any geographical restrictions.

Benefits

  • Storage scales as needed
  • Minimal start up investment and cost
  • Uses the bandwidth of the storage
  • Facilitates your server load balancing on the amount of the used bandwidth
  • Can speed up delivery based on location of each video

Please check this scenario to try to make the propose of this project clear:

https://github.com/WWBN/AVideo-Storage/wiki/AVideo-Platform-Storage-Scenario-Description

Installation

You will need the folowing prerequisites.

We made a video Installing YPTStorage and configuring the YPTStorage plugin

What we use for that:

  1. PHP 7+
  2. Apache XSendFile
  3. YPTStorage Plugin
  4. AVideo 7.3+

What will you need

  1. Root Access to the server
  2. Admin user for AVideo

Copy and Paste

Ubuntu 16.04

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install nano curl apache2 php7.0 libapache2-mod-php7.0 php7.0-curl php7.0-gd php7.0-intl php-zip php-xml php-mbstring git -y && a2enmod headers && service apache2 restart && cd /var/www/html && git clone https://github.com/WWBN/AVideo-Storage.git && sudo a2enmod rewrite && sudo mkdir /var/www/html/AVideo-Storage/videos && sudo chown www-data:www-data /var/www/html/AVideo-Storage/videos

Ubuntu 18.04

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install nano curl apache2 php7.2 libapache2-mod-php7.2 php7.2-curl php7.2-gd php7.2-intl php-xml php-mbstring git -y && a2enmod headers && service apache2 restart && cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo-Storage.git && sudo a2enmod rewrite && sudo mkdir /var/www/html/AVideo-Storage/videos && sudo chown www-data:www-data /var/www/html/AVideo-Storage/videos

Ubuntu 20.04

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install nano curl apache2 php7.4 libapache2-mod-php7.4 php7.4-curl php7.4-gd php7.4-intl php-xml php-mbstring git -y && a2enmod headers && service apache2 restart && cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo-Storage.git && sudo a2enmod rewrite && sudo mkdir /var/www/html/AVideo-Storage/videos && sudo chown www-data:www-data /var/www/html/AVideo-Storage/videos

Install apache xsendfile

sudo apt-get install libapache2-mod-xsendfile && sudo a2enmod xsendfile

Configure your apache XSendFile

sudo nano /etc/apache2/apache2.conf

<Directory /var/www/html/AVideo-Storage/>
    Options Indexes FollowSymLinks
    XSendFile on
    XSendFilePath /var/www/html/AVideo-Storage/
    AllowOverride All
    Require all granted
    Order Allow,Deny
    Allow from All
</Directory>

Enable YPTStorage Plugin

Make sure you enable it before your installation, this is necessary because the Storage installation will check your plugin during the configuration assistant

If you do not have the plugin yet, get it here

Access your storage server

On the first access you will be requested for your streamer address. the installation script will try to create your videos directory and your configuration.php file. If any of those fail you will need to create it manually.

The script will create a Storage site for you on your streamer site, but this site will be inactive, you will need to activate it (On the YPTStorage plugin) before proceed.

Demonstration

We currently have this feature enabled on the demo site

We have the following storages:

You can switch the storages from the videos on the videos manager. You will find a move storage button, when you click on it. It will popup a window with the options to move your video to the local storage or one of the 3 storages above.

vod-storageserver's People

Contributors

danielnetodotcom avatar alexious avatar akhilleusuggo 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.