|
|
|
|
@ -44,6 +44,7 @@ type ServerCfg struct {
@@ -44,6 +44,7 @@ type ServerCfg struct {
|
|
|
|
|
RTMPAddr string `mapstructure:"rtmp_addr"` |
|
|
|
|
HTTPFLVAddr string `mapstructure:"httpflv_addr"` |
|
|
|
|
HLSAddr string `mapstructure:"hls_addr"` |
|
|
|
|
HLSKeepAfterEnd bool `mapstructure:"hls_keep_after_end"` |
|
|
|
|
APIAddr string `mapstructure:"api_addr"` |
|
|
|
|
RedisAddr string `mapstructure:"redis_addr"` |
|
|
|
|
RedisPwd string `mapstructure:"redis_pwd"` |
|
|
|
|
@ -51,7 +52,7 @@ type ServerCfg struct {
@@ -51,7 +52,7 @@ type ServerCfg struct {
|
|
|
|
|
WriteTimeout int `mapstructure:"write_timeout"` |
|
|
|
|
GopNum int `mapstructure:"gop_num"` |
|
|
|
|
JWT JWT `mapstructure:"jwt"` |
|
|
|
|
Server []Application `mapstructure:"server"` |
|
|
|
|
Server Applications `mapstructure:"server"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// default config
|
|
|
|
|
@ -60,6 +61,7 @@ var defaultConf = ServerCfg{
@@ -60,6 +61,7 @@ var defaultConf = ServerCfg{
|
|
|
|
|
RTMPAddr: ":1935", |
|
|
|
|
HTTPFLVAddr: ":7001", |
|
|
|
|
HLSAddr: ":7002", |
|
|
|
|
HLSKeepAfterEnd: false, |
|
|
|
|
APIAddr: ":8090", |
|
|
|
|
WriteTimeout: 10, |
|
|
|
|
ReadTimeout: 10, |
|
|
|
|
|