mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
feat: add enableReplayFeatures cli flag
This commit is contained in:
parent
96fb5ebb82
commit
5555dc1751
3
main.go
3
main.go
@ -28,6 +28,7 @@ var (
|
|||||||
webServerPortOverride = flag.String("webserverport", "", "Force the web server to listen on a specific port")
|
webServerPortOverride = flag.String("webserverport", "", "Force the web server to listen on a specific port")
|
||||||
webServerIPOverride = flag.String("webserverip", "", "Force web server to listen on this IP address")
|
webServerIPOverride = flag.String("webserverip", "", "Force web server to listen on this IP address")
|
||||||
rtmpPortOverride = flag.Int("rtmpport", 0, "Set listen port for the RTMP server")
|
rtmpPortOverride = flag.Int("rtmpport", 0, "Set listen port for the RTMP server")
|
||||||
|
enableReplayFeatures = flag.Bool("enableReplayFeatures", false, "Enable experimental replay features")
|
||||||
)
|
)
|
||||||
|
|
||||||
// nolint:cyclop
|
// nolint:cyclop
|
||||||
@ -42,6 +43,8 @@ func main() {
|
|||||||
config.BackupDirectory = *backupDirectory
|
config.BackupDirectory = *backupDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.EnableReplayFeatures = *enableReplayFeatures
|
||||||
|
|
||||||
// Create the data directory if needed
|
// Create the data directory if needed
|
||||||
if !utils.DoesFileExists("data") {
|
if !utils.DoesFileExists("data") {
|
||||||
if err := os.Mkdir("./data", 0o700); err != nil {
|
if err := os.Mkdir("./data", 0o700); err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user