feat: add subsonic token auth and starred endpoints
This commit is contained in:
@@ -3,26 +3,28 @@ package config
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
AppEnv string
|
||||
ServerHost string
|
||||
ServerPort string
|
||||
DatabasePath string
|
||||
ArtworkCacheDir string
|
||||
MediaRoot string
|
||||
CORSOrigins string
|
||||
AppEnv string
|
||||
ServerHost string
|
||||
ServerPort string
|
||||
DatabasePath string
|
||||
EncryptionKey string
|
||||
ArtworkCacheDir string
|
||||
MediaRoot string
|
||||
CORSOrigins string
|
||||
DefaultAdminUsername string
|
||||
DefaultAdminPassword string
|
||||
}
|
||||
|
||||
func Load() Config {
|
||||
return Config{
|
||||
AppEnv: getenv("APP_ENV", "development"),
|
||||
ServerHost: getenv("SERVER_HOST", "0.0.0.0"),
|
||||
ServerPort: getenv("SERVER_PORT", "4040"),
|
||||
DatabasePath: getenv("DATABASE_PATH", "./data/app.db"),
|
||||
ArtworkCacheDir: getenv("ARTWORK_CACHE_DIR", "./data/artwork"),
|
||||
MediaRoot: getenv("MEDIA_ROOT", "./media"),
|
||||
CORSOrigins: getenv("CORS_ORIGINS", "http://localhost:5173"),
|
||||
AppEnv: getenv("APP_ENV", "development"),
|
||||
ServerHost: getenv("SERVER_HOST", "0.0.0.0"),
|
||||
ServerPort: getenv("SERVER_PORT", "4040"),
|
||||
DatabasePath: getenv("DATABASE_PATH", "./data/app.db"),
|
||||
EncryptionKey: getenv("APP_ENCRYPTION_KEY", "temporserv-dev-insecure-key"),
|
||||
ArtworkCacheDir: getenv("ARTWORK_CACHE_DIR", "./data/artwork"),
|
||||
MediaRoot: getenv("MEDIA_ROOT", "./media"),
|
||||
CORSOrigins: getenv("CORS_ORIGINS", "http://localhost:5173"),
|
||||
DefaultAdminUsername: getenv("DEFAULT_ADMIN_USERNAME", "demo"),
|
||||
DefaultAdminPassword: getenv("DEFAULT_ADMIN_PASSWORD", "demo"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user