mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
package consts
|
|
|
|
import "time"
|
|
|
|
const (
|
|
AppName = "navidrome"
|
|
|
|
LocalConfigFile = "./navidrome.toml"
|
|
DefaultDbPath = "navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL"
|
|
InitialSetupFlagKey = "InitialSetup"
|
|
|
|
JWTSecretKey = "JWTSecret"
|
|
JWTIssuer = "ND"
|
|
DefaultSessionTimeout = 30 * time.Minute
|
|
|
|
UIAssetsLocalPath = "ui/build"
|
|
|
|
CacheDir = "cache"
|
|
DefaultTranscodingCacheSize = 100 * 1024 * 1024 // 100MB
|
|
DefaultTranscodingCacheMaxItems = 0 // Unlimited
|
|
DefaultTranscodingCachePurgeInterval = 10 * time.Minute
|
|
|
|
DevInitialUserName = "admin"
|
|
DevInitialName = "Dev Admin"
|
|
)
|
|
|
|
var (
|
|
DefaultTranscodings = []map[string]interface{}{
|
|
{
|
|
"name": "mp3 audio",
|
|
"targetFormat": "mp3",
|
|
"defaultBitRate": 192,
|
|
"command": "ffmpeg -i %s -ab %bk -v 0 -f mp3 -",
|
|
},
|
|
{
|
|
"name": "opus audio",
|
|
"targetFormat": "oga",
|
|
"defaultBitRate": 128,
|
|
"command": "ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -c:a libopus -f opus -",
|
|
},
|
|
}
|
|
)
|