mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
!minor fixed the webroot issue #1513
This commit is contained in:
parent
dd8f8493e1
commit
e1ceb4c66e
2 changed files with 13 additions and 6 deletions
|
@ -11,9 +11,10 @@ namespace Ombi.Store.Entities
|
|||
|
||||
public enum ConfigurationTypes
|
||||
{
|
||||
Url,
|
||||
FanartTv,
|
||||
TheMovieDb,
|
||||
StoragePath
|
||||
Url = 1,
|
||||
// 2 was used for Port before the beta
|
||||
FanartTv = 3,
|
||||
TheMovieDb = 4,
|
||||
StoragePath = 5
|
||||
}
|
||||
}
|
|
@ -26,12 +26,16 @@ namespace Ombi
|
|||
.WithParsed(o =>
|
||||
{
|
||||
host = o.Host;
|
||||
WebRoot = o.WebRoot;
|
||||
WebRoot = Path.Combine(o.WebRoot, "wwwroot");
|
||||
storagePath = o.StoragePath;
|
||||
});
|
||||
|
||||
Console.WriteLine(HelpOutput(result));
|
||||
|
||||
if (string.IsNullOrEmpty(WebRoot))
|
||||
{
|
||||
WebRoot = Path.Combine(WebHost.CreateDefaultBuilder().GetSetting("contentRoot"), "wwwroot");
|
||||
}
|
||||
UrlArgs = host;
|
||||
|
||||
var urlValue = string.Empty;
|
||||
|
@ -97,7 +101,9 @@ namespace Ombi
|
|||
[Option('s', "storage", Required = false, HelpText = "Storage path, where we save the logs and database")]
|
||||
public string StoragePath { get; set; }
|
||||
|
||||
[Option('w', "webroot", Required = false, HelpText = "(Root Path for Reverse Proxies) If not specified, the default is \"(Content Root)/wwwroot\", if the path exists. If the path doesn\'t exist, then a no-op file provider is used.")]
|
||||
[Option('w', "webroot", Required = false,
|
||||
HelpText = "(Root Path for Reverse Proxies) If not specified, the default is \"(Working Directory)\", if the path exists. If the path doesn\'t exist, then a no-op file provider is used."
|
||||
,Default = "")]
|
||||
public string WebRoot { get; set; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue