mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-02 13:15:25 -04:00
Use IsHostingContent instead of explicitly checking ContentRoot
This commit is contained in:
parent
192ec57b60
commit
d95ccbacac
@ -268,7 +268,7 @@ namespace Jellyfin.Server
|
|||||||
.UseStartup<Startup>();
|
.UseStartup<Startup>();
|
||||||
|
|
||||||
// Set the root directory for static content, if one exists
|
// Set the root directory for static content, if one exists
|
||||||
if (!string.IsNullOrEmpty(appHost.ContentRoot))
|
if (appHost.IsHostingContent)
|
||||||
{
|
{
|
||||||
webhostBuilder.UseContentRoot(appHost.ContentRoot);
|
webhostBuilder.UseContentRoot(appHost.ContentRoot);
|
||||||
}
|
}
|
||||||
|
@ -149,9 +149,9 @@ namespace MediaBrowser.Model.Configuration
|
|||||||
public bool EnableDashboardResponseCaching { get; set; }
|
public bool EnableDashboardResponseCaching { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows the dashboard to be served from a custom path.
|
/// Gets or sets a custom path to serve the dashboard from.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The dashboard source path.</value>
|
/// <value>The dashboard source path, or null if the default path should be used.</value>
|
||||||
public string DashboardSourcePath { get; set; }
|
public string DashboardSourcePath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user