Giter VIP home page Giter VIP logo

nginx-vods-go's Introduction

nginx-vods-go

This is a rewrite of the nginx-vods repository into Go. You may find an example of this script in use at rec.esibun.net

Configuration

  • Copy the files to a new directory
  • Run go build in the directory
  • Fill out the config values in config.go:
const (
  mysql_database string = "database in which you wish to store vod/api information"
  mysql_username string = "username to log into mysql"
  mysql_password string = "password with which to log into mysql"
  
  twitch_username string = "twitch username to fetch titles from"
  nickname string = "nickname displayed in titles/headers"
)
  • Optionally, configure your nginx instance to proxy requests to a path or a directory to the nginx-vods-go instance.

Usage

  • Head to /update to update the list of videos in the videos directory and generate thumbnails and metadata for each video.
  • You may configure nginx-rtmp's on_publish and on_publish_done directives to go to the update URL to additionally update live status as well as automatically updating the video list.

nginx-vods-go's People

Contributors

esibun avatar

Watchers

James Cloos avatar 胡鹏飞 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.