Move constant to consts.go file

This commit is contained in:
Deluan 2021-03-24 10:21:31 -04:00 committed by Joe Stump
parent 883cddfe32
commit b3adc9844e
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9
2 changed files with 4 additions and 3 deletions

View File

@ -137,7 +137,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