Coder Social home page Coder Social logo

trentwiles / flag Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 3.0 258 KB

A simple video sharing service.

Home Page: https://flag.riverside.rocks

PHP 90.17% JavaScript 8.88% Shell 0.16% Hack 0.79%
video share video-sharing-platform video-sharing upload social-network social-media social

flag's Introduction

Flag

Simple short video sharing. Share and upload videos up to 20 MBs in size.

Self hosting

Self hosting a Flag instance is quite easy! We still need to make some changes to the codebase to make selfhosting a btt smoother, but it is possible.

Requirements

  • PHP 7.2+ (main instance uses 7.3.19)
  • MySQL 15+ (main instance uses 15.1)
  • Apache or Nginx (main instance uses Apache 2.4.38, but should work on Nginx, you might just have to convert the .htaccess file to nginx.conf)
  • Composer (main instance uses 1.10.13)

Setup

Clone this repo into the directory of choice:

git clone https://github.com/RiversideRocks/Flag.git && cd Flag

Open MySQL and run the installer:

MariaDB [(none)]> SOURCE source.sql;

Once the installer has finished, install all dependencies:

composer install

Enter your .env file and edit the values.

  • CAPTCHA is the hCaptcha API token.
  • EMAIL_USERNAME is your email server username
  • EMAIL_PASSWORD is your email server password
  • NAME is the name you want to send emails as (if you use gmail mail servers, set this to the name of your account)

Create a virtual host for Flag in your Apache config. (generally found under /etc/apache2/sites-available/000-default.conf). Our example doesn't use SSL, but we reccomend that you do.

<VirtualHost *:80> # replace 80 with the port you want
  ServerName yourwebsite.com
  DocumentRoot /var/www/flag/ # or wherever your flag instance is on the machine
  ServerAdmin [email protected]
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  RemoteIPHeader CF-Connecting-IP
</VirtualHost>

Add the required DNS records, then your site should be live. Additional configuration may be needed.

flag's People

Contributors

aboutdavid avatar dependabot[bot] avatar ricardogonzf avatar stilic avatar trentwiles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.