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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user