Monibuca / engine

Monibuca 核心引擎,包含流媒体核心转发逻辑,需要配合功能插件一起组合运行
MIT License
939 stars 199 forks source link

增加全局ui静态文件路径设置 #13

Closed dwdcth closed 3 years ago

dwdcth commented 3 years ago

在engine的 config结构体,增加GlobalUIPath项,并挪动配置解析到单独的函数里,通过init函数自动加载运行目录的config.toml文件,也支持通过Run传config文件。
这样可以把插件的ui挪出来,放到GlobalUIPath指定的目录下,已自测通过,如下图: image

注意GlobalUIPath 要使用绝对路径

dwdcth commented 3 years ago

配置文件增加下面的即可

[Monibuca]
GlobalUIPath = "/var/www/server/static"