Skip to content

Commit

Permalink
Updated liveconfig to reflect config file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EssGeeEich authored Jan 14, 2021
1 parent 4671c6b commit 3e272c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure/liveconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type Application struct {
Appname string `mapstructure:"appname"`
Live bool `mapstructure:"live"`
Hls bool `mapstructure:"hls"`
Flv bool `mapstructure:"flv"`
Api bool `mapstructure:"api"`
StaticPush []string `mapstructure:"static_push"`
}

Expand All @@ -40,7 +42,9 @@ type JWT struct {
type ServerCfg struct {
Level string `mapstructure:"level"`
ConfigFile string `mapstructure:"config_file"`
FLVArchive bool `mapstructure:"flv_archive"`
FLVDir string `mapstructure:"flv_dir"`
RTMPNoAuth bool `mapstructure:"rtmp_noauth"`
RTMPAddr string `mapstructure:"rtmp_addr"`
HTTPFLVAddr string `mapstructure:"httpflv_addr"`
HLSAddr string `mapstructure:"hls_addr"`
Expand All @@ -58,6 +62,8 @@ type ServerCfg struct {
// default config
var defaultConf = ServerCfg{
ConfigFile: "livego.yaml",
FLVArchive: false,
RTMPNoAuth: false,
RTMPAddr: ":1935",
HTTPFLVAddr: ":7001",
HLSAddr: ":7002",
Expand All @@ -70,6 +76,8 @@ var defaultConf = ServerCfg{
Appname: "live",
Live: true,
Hls: true,
Flv: true,
Api: true,
StaticPush: nil,
}},
}
Expand Down

0 comments on commit 3e272c1

Please sign in to comment.