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

View File

@ -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")

View File

@ -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 = 100
RequestThrottleBacklogTimeout = time.Minute