nginx-vods-go:nginx-vods 重写

  • e3_445044
    了解作者
  • 102.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-02 00:22
    上传日期
nginx-vods-go 这是将 nginx-vods 存储库重写为 Go。 您可以在找到正在使用的此脚本的示例 配置 将文件复制到新目录 在目录中运行go build 在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 st
nginx-vods-go-master.zip
  • nginx-vods-go-master
  • main.go
    3.3KB
  • update.go
    6.9KB
  • images
  • thumbnail_border.png
    2.3KB
  • ava-small.png
    4.2KB
  • borderright.png
    1KB
  • borderleft.png
    1.1KB
  • nothumbnail.png
    32.6KB
  • ava.png
    40.8KB
  • LICENSE
    34.3KB
  • thumbnails
  • README
    51B
  • videos
  • README
    47B
  • README.md
    1.1KB
  • css
  • errorpage.css
    483B
  • style.css
    3KB
  • templates
  • ListVideos.tmpl
    2.1KB
  • ShowVideo.tmpl
    2KB
  • config.go
    226B
内容介绍
# 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](http://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*: ```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.
评论
    相关推荐