mirror of
https://github.com/gwuhaolin/livego.git
synced 2021-06-01 09:10:22 +03:00
Updated liveconfig to reflect config file changes
This commit is contained in:
@@ -28,6 +28,8 @@ type Application struct {
|
|||||||
Appname string `mapstructure:"appname"`
|
Appname string `mapstructure:"appname"`
|
||||||
Live bool `mapstructure:"live"`
|
Live bool `mapstructure:"live"`
|
||||||
Hls bool `mapstructure:"hls"`
|
Hls bool `mapstructure:"hls"`
|
||||||
|
Flv bool `mapstructure:"flv"`
|
||||||
|
Api bool `mapstructure:"api"`
|
||||||
StaticPush []string `mapstructure:"static_push"`
|
StaticPush []string `mapstructure:"static_push"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,7 +42,9 @@ type JWT struct {
|
|||||||
type ServerCfg struct {
|
type ServerCfg struct {
|
||||||
Level string `mapstructure:"level"`
|
Level string `mapstructure:"level"`
|
||||||
ConfigFile string `mapstructure:"config_file"`
|
ConfigFile string `mapstructure:"config_file"`
|
||||||
|
FLVArchive bool `mapstructure:"flv_archive"`
|
||||||
FLVDir string `mapstructure:"flv_dir"`
|
FLVDir string `mapstructure:"flv_dir"`
|
||||||
|
RTMPNoAuth bool `mapstructure:"rtmp_noauth"`
|
||||||
RTMPAddr string `mapstructure:"rtmp_addr"`
|
RTMPAddr string `mapstructure:"rtmp_addr"`
|
||||||
HTTPFLVAddr string `mapstructure:"httpflv_addr"`
|
HTTPFLVAddr string `mapstructure:"httpflv_addr"`
|
||||||
HLSAddr string `mapstructure:"hls_addr"`
|
HLSAddr string `mapstructure:"hls_addr"`
|
||||||
@@ -58,6 +62,8 @@ type ServerCfg struct {
|
|||||||
// default config
|
// default config
|
||||||
var defaultConf = ServerCfg{
|
var defaultConf = ServerCfg{
|
||||||
ConfigFile: "livego.yaml",
|
ConfigFile: "livego.yaml",
|
||||||
|
FLVArchive: false,
|
||||||
|
RTMPNoAuth: false,
|
||||||
RTMPAddr: ":1935",
|
RTMPAddr: ":1935",
|
||||||
HTTPFLVAddr: ":7001",
|
HTTPFLVAddr: ":7001",
|
||||||
HLSAddr: ":7002",
|
HLSAddr: ":7002",
|
||||||
@@ -70,6 +76,8 @@ var defaultConf = ServerCfg{
|
|||||||
Appname: "live",
|
Appname: "live",
|
||||||
Live: true,
|
Live: true,
|
||||||
Hls: true,
|
Hls: true,
|
||||||
|
Flv: true,
|
||||||
|
Api: true,
|
||||||
StaticPush: nil,
|
StaticPush: nil,
|
||||||
}},
|
}},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user