Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Support config file location as an argument. #20
Gabe Kangas72f553c0d1b2
diff --git a/main.go b/main.goindex ac3e7af3af..3b03bef79d 100644--- a/main.go+++ b/main.go@@ -1,6 +1,7 @@package mainimport (+ "flag""fmt"log "github.com/sirupsen/logrus"@@ -24,11 +25,10 @@ func main() {// logrus.SetReportCaller(true)log.Println(getVersion())- //TODO: potentially load the config from a flag like:- //configFile := flag.String("configFile", "config.yaml", "Config File full path. Defaults to current folder")- // flag.Parse()+ configFile := flag.String("configFile", "config.yaml", "Config File full path. Defaults to current folder")+ flag.Parse()- if err := config.Load("config.yaml"); err != nil {+ if err := config.Load(*configFile); err != nil {panic(err)}