* Fix #981 Use -webserverip to set http listen address * use 0.0.0.0 as default http listen address * add Admin REST API for setting http listen address * full input validation of port and IP
This commit is contained in:
@@ -21,6 +21,9 @@ var VersionNumber = StaticVersionNumber
|
||||
// WebServerPort is the port for Owncast's webserver that is used for this execution of the service.
|
||||
var WebServerPort = 8080
|
||||
|
||||
// Bind WebServer to this IP address. Be secure by default.
|
||||
var WebServerIP = "0.0.0.0"
|
||||
|
||||
// InternalHLSListenerPort is the port for HLS writes that is used for this execution of the service.
|
||||
var InternalHLSListenerPort = "8927"
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ type Defaults struct {
|
||||
|
||||
DatabaseFilePath string
|
||||
WebServerPort int
|
||||
WebServerIP string
|
||||
RTMPServerPort int
|
||||
StreamKey string
|
||||
|
||||
@@ -46,6 +47,7 @@ func GetDefaults() Defaults {
|
||||
YPServer: "https://directory.owncast.online",
|
||||
|
||||
WebServerPort: 8080,
|
||||
WebServerIP: "0.0.0.0",
|
||||
RTMPServerPort: 1935,
|
||||
StreamKey: "abc123",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user