8 Star 22 Fork 10

leo / supervisor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Project clone and modified from https://gitee.com/love_linger/supervisor.

C++版的gosuv。

Inspired by codeskyblue/gosuv. 可以认为是gosuv的C++实现

特性

  1. 方便部署。所有资源(页面,图片,JS)均集成到最终可执行文件中。
  2. 实现gosuv的基本功能,并扩展。添加前端编辑功能,增加访问ip控制。
  3. 支持Windows及Linux双平台。
  4. 使用Mongoose作为HTTP/WebSocket底层,可执行文件 < 2M(gosuv的可执行文件11M+)。

预览

S1 S2

运行说明

支持启动命令行参数有:

参数 说明
help 显示使用说明
daemon 以Daemon方式后台启动
port=N 设置监听端口,默认8088

编译运行

cd supervisor
xmake
./supervisor daemon

安全访问控制

supervisor首次运行后会在运行目录生成supervisor.json配置文件。 基于安全考虑,supervisor.json中访问控制的配置不提供前端更改。

指定登录用户

在supervisor.json中配置user列表后,所有访问需要登录(DigestAuth),参见supervisor.cc

{
	"user" : [
		{"account" : "leo", "pswd" : "1234"},
		{"account" : "hhh", "pswd" : "5432"}
	]
}

访问IP过滤

在supervisor.json中配置iptables列表后,将启用IP过滤(参数为REGEX)

{
	"iptables" : [
		"192\\.168\\..*"
	]
}

【注】改动conf.json后需要Reload才会应用更改

Mongoose

软件使用Mongoose(GPL v2)做为HTTP服务器 如做商业用途,请自行阅读Mongoose的License

The MIT License (MIT) Copyright (c) 2016 leo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

supervisord的WEB版(C++) 展开 收起
C++ 等 5 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/love_linger/supervisor.git
git@gitee.com:love_linger/supervisor.git
love_linger
supervisor
supervisor
master

搜索帮助