🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Move constant to `consts.go` file
Deluan4b68260b839e
diff --git a/conf/configuration.go b/conf/configuration.goindex a1f9afe17..485634220 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -126,7 +126,7 @@ func init() {viper.SetDefault("sessiontimeout", consts.DefaultSessionTimeout)viper.SetDefault("scaninterval", time.Minute)viper.SetDefault("baseurl", "")- viper.SetDefault("uiloginbackgroundurl", "https://source.unsplash.com/random/1600x900?music")+ viper.SetDefault("uiloginbackgroundurl", consts.DefaultUILoginBackgroundURL)viper.SetDefault("enabletranscodingconfig", false)viper.SetDefault("transcodingcachesize", "100MB")viper.SetDefault("imagecachesize", "100MB")diff --git a/consts/consts.go b/consts/consts.goindex d020d1370..61374d749 100644--- a/consts/consts.go+++ b/consts/consts.go@@ -21,8 +21,9 @@ const (DevInitialUserName = "admin"DevInitialName = "Dev Admin"- URLPathUI = "/app"- URLPathSubsonicAPI = "/rest"+ URLPathUI = "/app"+ URLPathSubsonicAPI = "/rest"+ DefaultUILoginBackgroundURL = "https://source.unsplash.com/random/1600x900?music"RequestThrottleBacklogLimit = 100RequestThrottleBacklogTimeout = time.Minute