Properly host static files and set base url

This commit is contained in:
crobibero
2020-09-02 08:03:15 -06:00
parent 0b38ac9a8a
commit 1feee6f95e
7 changed files with 27 additions and 136 deletions

View File

@@ -169,7 +169,7 @@ namespace Jellyfin.Server
// If hosting the web client, validate the client content path
if (startupConfig.HostWebClient())
{
string? webContentPath = DashboardController.GetWebClientUiPath(startupConfig, appHost.ServerConfigurationManager);
string? webContentPath = appHost.ServerConfigurationManager.ApplicationPaths.WebPath;
if (!Directory.Exists(webContentPath) || Directory.GetFiles(webContentPath).Length == 0)
{
throw new InvalidOperationException(