Update NuGet paths and add web client directory docs

Added README section describing the web client directory (`wwwroot`) and its configuration options. No code logic changes; only environment and documentation updates.
This commit is contained in:
2026-02-24 12:21:55 -05:00
parent e1775c5124
commit 135b6a81b9
139 changed files with 6383 additions and 6037 deletions
+26 -1
View File
@@ -123,7 +123,32 @@ public static class StartupHelpers
var webDir = options.WebDir ?? Environment.GetEnvironmentVariable("JELLYFIN_WEB_DIR");
if (webDir is null)
{
webDir = Path.Join(AppContext.BaseDirectory, "jellyfin-web");
// Look for wwwroot folder in the solution root
var baseDir = AppContext.BaseDirectory;
var currentDir = new DirectoryInfo(baseDir);
// Navigate up to find the solution root (look for .sln file or stop after a reasonable number of levels)
var maxLevelsUp = 5;
var levelsChecked = 0;
while (currentDir != null && levelsChecked < maxLevelsUp)
{
var wwwrootPath = Path.Combine(currentDir.FullName, "wwwroot");
if (Directory.Exists(wwwrootPath))
{
webDir = wwwrootPath;
break;
}
currentDir = currentDir.Parent;
levelsChecked++;
}
// Fall back to the old default if wwwroot not found
if (webDir is null)
{
webDir = Path.Join(AppContext.BaseDirectory, "jellyfin-web");
}
}
var logDir = options.LogDir ?? Environment.GetEnvironmentVariable("JELLYFIN_LOG_DIR");