1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 07:30:54 +02:00

Make viewers counter period configurable

This commit is contained in:
Alexandre Iooss
2020-09-29 18:44:32 +02:00
parent 12009b5875
commit 06542590e1
5 changed files with 18 additions and 9 deletions

View File

@ -53,6 +53,7 @@ func loadConfiguration() {
viper.SetDefault("Web.Name", "Ghostream")
viper.SetDefault("Web.Hostname", "localhost")
viper.SetDefault("Web.Favicon", "/favicon.ico")
viper.SetDefault("Web.ViewersCounterRefreshPeriod", 20000)
viper.SetDefault("WebRTC.MinPortUDP", 10000)
viper.SetDefault("WebRTC.MaxPortUDP", 10005)
viper.SetDefault("WebRTC.STUNServers", []string{"stun:stun.l.google.com:19302"})