Move constant to consts.go file

This commit is contained in:
Deluan
2021-03-24 10:21:31 -04:00
parent ba922bbfce
commit 4b68260b83
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ func init() {
viper.SetDefault("sessiontimeout", consts.DefaultSessionTimeout) viper.SetDefault("sessiontimeout", consts.DefaultSessionTimeout)
viper.SetDefault("scaninterval", time.Minute) viper.SetDefault("scaninterval", time.Minute)
viper.SetDefault("baseurl", "") viper.SetDefault("baseurl", "")
viper.SetDefault("uiloginbackgroundurl", "https://source.unsplash.com/random/1600x900?music") viper.SetDefault("uiloginbackgroundurl", consts.DefaultUILoginBackgroundURL)
viper.SetDefault("enabletranscodingconfig", false) viper.SetDefault("enabletranscodingconfig", false)
viper.SetDefault("transcodingcachesize", "100MB") viper.SetDefault("transcodingcachesize", "100MB")
viper.SetDefault("imagecachesize", "100MB") viper.SetDefault("imagecachesize", "100MB")
+1
View File
@@ -23,6 +23,7 @@ const (
URLPathUI = "/app" URLPathUI = "/app"
URLPathSubsonicAPI = "/rest" URLPathSubsonicAPI = "/rest"
DefaultUILoginBackgroundURL = "https://source.unsplash.com/random/1600x900?music"
RequestThrottleBacklogLimit = 100 RequestThrottleBacklogLimit = 100
RequestThrottleBacklogTimeout = time.Minute RequestThrottleBacklogTimeout = time.Minute