Add config option for RTMPS listen address
This commit is contained in:
parent
35a1833aa6
commit
4420d04a3b
1 changed files with 7 additions and 5 deletions
|
|
@ -129,11 +129,12 @@ type Data struct {
|
||||||
MimeTypes string `json:"mimetypes_file"`
|
MimeTypes string `json:"mimetypes_file"`
|
||||||
} `json:"storage"`
|
} `json:"storage"`
|
||||||
RTMP struct {
|
RTMP struct {
|
||||||
Enable bool `json:"enable"`
|
Enable bool `json:"enable"`
|
||||||
EnableTLS bool `json:"enable_tls"`
|
EnableTLS bool `json:"enable_tls"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
App string `json:"app"`
|
AddressTLS string `json:"address_tls"`
|
||||||
Token string `json:"token"`
|
App string `json:"app"`
|
||||||
|
Token string `json:"token"`
|
||||||
} `json:"rtmp"`
|
} `json:"rtmp"`
|
||||||
SRT struct {
|
SRT struct {
|
||||||
Enable bool `json:"enable"`
|
Enable bool `json:"enable"`
|
||||||
|
|
@ -349,6 +350,7 @@ func (d *Config) init() {
|
||||||
d.val(newBoolValue(&d.RTMP.Enable, false), "rtmp.enable", "CORE_RTMP_ENABLE", nil, "Enable RTMP server", false, false)
|
d.val(newBoolValue(&d.RTMP.Enable, false), "rtmp.enable", "CORE_RTMP_ENABLE", nil, "Enable RTMP server", false, false)
|
||||||
d.val(newBoolValue(&d.RTMP.EnableTLS, false), "rtmp.enable_tls", "CORE_RTMP_ENABLE_TLS", nil, "Enable RTMPS server instead of RTMP", false, false)
|
d.val(newBoolValue(&d.RTMP.EnableTLS, false), "rtmp.enable_tls", "CORE_RTMP_ENABLE_TLS", nil, "Enable RTMPS server instead of RTMP", false, false)
|
||||||
d.val(newAddressValue(&d.RTMP.Address, ":1935"), "rtmp.address", "CORE_RTMP_ADDRESS", nil, "RTMP server listen address", false, false)
|
d.val(newAddressValue(&d.RTMP.Address, ":1935"), "rtmp.address", "CORE_RTMP_ADDRESS", nil, "RTMP server listen address", false, false)
|
||||||
|
d.val(newAddressValue(&d.RTMP.AddressTLS, ":1936"), "rtmp.address_tls", "CORE_RTMP_ADDRESS_TLS", nil, "RTMPS server listen address", false, false)
|
||||||
d.val(newStringValue(&d.RTMP.App, "/"), "rtmp.app", "CORE_RTMP_APP", nil, "RTMP app for publishing", false, false)
|
d.val(newStringValue(&d.RTMP.App, "/"), "rtmp.app", "CORE_RTMP_APP", nil, "RTMP app for publishing", false, false)
|
||||||
d.val(newStringValue(&d.RTMP.Token, ""), "rtmp.token", "CORE_RTMP_TOKEN", nil, "RTMP token for publishing and playing", false, true)
|
d.val(newStringValue(&d.RTMP.Token, ""), "rtmp.token", "CORE_RTMP_TOKEN", nil, "RTMP token for publishing and playing", false, true)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue