mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 19:19:06 +03:00
parent
a77af81684
commit
ebf8157e8c
1 changed files with 7 additions and 0 deletions
7
main.go
7
main.go
|
@ -42,6 +42,7 @@ func main() {
|
|||
restoreDatabaseFile := flag.String("restoreDatabase", "", "Restore an Owncast database backup")
|
||||
newStreamKey := flag.String("streamkey", "", "Set your stream key/admin password")
|
||||
webServerPortOverride := flag.String("webserverport", "", "Force the web server to listen on a specific port")
|
||||
rtmpPortOverride := flag.Int("rtmpport", 0, "Set listen port for the RTMP server")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
|
@ -124,6 +125,12 @@ func main() {
|
|||
|
||||
config.WebServerPort = data.GetHTTPPortNumber()
|
||||
|
||||
// Set the rtmp server port
|
||||
if *rtmpPortOverride > 0 {
|
||||
log.Println("Saving new RTMP server port number to", *rtmpPortOverride)
|
||||
data.SetRTMPPortNumber(float64(*rtmpPortOverride))
|
||||
}
|
||||
|
||||
// starts the core
|
||||
if err := core.Start(); err != nil {
|
||||
log.Fatalln("failed to start the core package", err)
|
||||
|
|
Loading…
Reference in a new issue