mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
Move constant to consts.go
file
This commit is contained in:
parent
ba922bbfce
commit
4b68260b83
2 changed files with 4 additions and 3 deletions
|
@ -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")
|
||||||
|
|
|
@ -21,8 +21,9 @@ const (
|
||||||
DevInitialUserName = "admin"
|
DevInitialUserName = "admin"
|
||||||
DevInitialName = "Dev Admin"
|
DevInitialName = "Dev Admin"
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue