Giter VIP home page Giter VIP logo

plugin-gateway's Introduction

网关插件

该插件主要提供http协议访问,供其他插件公用http接口端口,并且提供一些基础的API

UI

如需要ui源码,可联系微信:bosswancheng

插件地址

github.com/Monibuca/plugin-gateway

插件引入

import (
    _ "github.com/Monibuca/plugin-gateway"
)

默认插件配置

[GateWay]
ListenAddr = ":8080"
#ListenAddrTLS = ":8082"
#CertFile = "xxx.cert"
#KeyFile = "xxx.key"
#StaticPath = ""
  • ListenAddr 公共http监听端口
  • ListenAddrTLS 公共https监听端口
  • CertFile https用的证书
  • KeyFile https用的证书的key
  • StaticPath 静态资源目录,设置后可以通过访问公共http监听端口来访问这些静态资源

自带的API接口

  • /api/gateway/sysInfo 系统信息,包含版本号(Version)和启动时间(StartTime)两个字段
  • /api/gateway/plugins 所有插件信息,是一个数组里面包含插件的名称(Name)、版本(Version)、README(ReadMe)、配置(Config)、热更新配置(HotConfig)
  • /api/gateway/config 返回原始配置文件
  • /api/gateway/stop?stream=xxx 终止某一个流,入参是流标识(stream)
  • /api/gateway/h264?stream=xxx&len=10 获取一段h264的流用于调试,入参数len代表需要获取的时长单位是秒
  • /api/gateway/getIFrame?stream=xxx 获取一个I帧数据,包含了SPS和PPS信息
  • /api/gateway/modifyConfig?name=xxx&key=xxx&value=xxx 修改可以热更新的配置,name是插件名(插件注册时设置)

plugin-gateway's People

Contributors

bosscheng avatar dependabot[bot] avatar dwdcth avatar langhuihui avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

plugin-gateway's Issues

同学,您这个项目引入了47个开源组件,存在1个漏洞,辛苦升级一下

检测到 Monibuca/plugin-gateway 一共引入了47个开源组件,存在1个漏洞

漏洞标题:go-yaml < 2.2.8拒绝服务漏洞
缺陷组件:gopkg.in/[email protected]
漏洞编号:CVE-2019-11254
漏洞描述:gopkg.in/yaml.v2是go语言中用于处理yaml格式的包。
在2.2.8之前的版本中,处理恶意的yaml数据时,会导致CPU资源耗尽。
漏洞由Kubernetes开发者在fuzz测试中发现并提交修复补丁。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2020-35519
影响范围:(∞, 2.2.8)
最小修复版本:2.2.8
缺陷组件引入路径:github.com/Monibuca/plugin-gateway/v3@->gopkg.in/[email protected]

另外还有几个漏洞,详细报告:https://mofeisec.com/jr?p=aa42bd

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.