Refactor SQLite Database Provider
- Removed unused classes and files related to SQLite database provider, including SqliteDesignTimeJellyfinDbFactory, ModelBuilderExtensions, PragmaConnectionInterceptor, AssemblyInfo, SqliteDatabaseProvider, DateTimeKindValueConverter. - Updated tests to remove dependencies on removed classes and adjusted mocking for configuration sections. - Added Microsoft.EntityFrameworkCore.Sqlite package reference to test project. - Improved string handling in tests for better consistency and clarity. - Refactored logging methods in JellyfinApplicationFactory for better readability and maintainability.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Warning",
|
||||
"System": "Warning",
|
||||
"Microsoft.EntityFrameworkCore.Database.Command": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "Async",
|
||||
"Args": {
|
||||
"configure": [
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "%JELLYFIN_LOG_DIR%//log_.log",
|
||||
"rollingInterval": "Day",
|
||||
"retainedFileCountLimit": 3,
|
||||
"rollOnFileSizeLimit": true,
|
||||
"fileSizeLimitBytes": 100000000,
|
||||
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message}{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext", "WithThreadId" ]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/jellyfin-startup",
|
||||
"// Comment": "Startup configuration defaults for Jellyfin Server",
|
||||
"// Note": "For Linux: Use /var/lib/jellyfin, For Windows: Use C:/ProgramData/jellyfin",
|
||||
"// Documentation": "These values are used when no command-line args or environment variables are set",
|
||||
"Paths": {
|
||||
"DataDir": "/var/lib/jellyfin",
|
||||
"ConfigDir": "/var/lib/jellyfin",
|
||||
"CacheDir": "/var/lib/jellyfin",
|
||||
"LogDir": "/var/lib/jellyfin",
|
||||
"TempDir": "/var/lib/jellyfin",
|
||||
"WebDir": "/var/lib/jellyfin"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/jellyfin-startup",
|
||||
"// Comment": "Linux-specific startup configuration for Jellyfin Server",
|
||||
"// Instructions": "Copy this file to 'startup.json' in the Jellyfin directory",
|
||||
"// Documentation": "These paths follow Linux FHS (Filesystem Hierarchy Standard)",
|
||||
"Paths": {
|
||||
"DataDir": "/var/lib/jellyfin",
|
||||
"ConfigDir": "/var/lib/jellyfin",
|
||||
"CacheDir": "/var/lib/jellyfin",
|
||||
"LogDir": "/var/lib/jellyfin",
|
||||
"TempDir": "/var/lib/jellyfin",
|
||||
"WebDir": "/var/lib/jellyfin"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/jellyfin-startup",
|
||||
"// Comment": "Windows-specific startup configuration for Jellyfin Server",
|
||||
"// Instructions": "Copy this file to 'startup.json' in the Jellyfin directory",
|
||||
"// Documentation": "These paths are optimized for Windows installations",
|
||||
"Paths": {
|
||||
"DataDir": "C:/ProgramData/jellyfin",
|
||||
"ConfigDir": "C:/ProgramData/jellyfin",
|
||||
"CacheDir": "C:/ProgramData/jellyfin",
|
||||
"LogDir": "C:/ProgramData/jellyfin",
|
||||
"TempDir": "C:/ProgramData/jellyfin",
|
||||
"WebDir": "C:/ProgramData/jellyfin"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user