2020-01-09 04:42:25 +00:00
|
|
|
|
using Microsoft.Extensions.Configuration;
|
2020-03-28 20:42:45 +00:00
|
|
|
|
using Wabbajack.Common;
|
2020-01-09 04:42:25 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack.BuildServer
|
|
|
|
|
{
|
|
|
|
|
public class AppSettings
|
|
|
|
|
{
|
|
|
|
|
public AppSettings(IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
config.Bind("WabbajackSettings", this);
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-28 20:42:45 +00:00
|
|
|
|
public AbsolutePath DownloadDir { get; set; }
|
|
|
|
|
public AbsolutePath ArchiveDir { get; set; }
|
2020-01-16 05:06:25 +00:00
|
|
|
|
|
2020-03-30 03:47:35 +00:00
|
|
|
|
public string TempFolder { get; set; }
|
2020-03-30 20:38:46 +00:00
|
|
|
|
|
|
|
|
|
public AbsolutePath TempPath => (AbsolutePath)TempFolder;
|
2020-03-30 03:47:35 +00:00
|
|
|
|
|
2020-01-26 04:50:17 +00:00
|
|
|
|
public bool JobScheduler { get; set; }
|
|
|
|
|
public bool JobRunner { get; set; }
|
2020-01-18 22:09:32 +00:00
|
|
|
|
|
|
|
|
|
public bool RunFrontEndJobs { get; set; }
|
|
|
|
|
public bool RunBackEndJobs { get; set; }
|
2020-01-21 12:49:49 +00:00
|
|
|
|
|
2020-01-22 03:43:53 +00:00
|
|
|
|
public string BunnyCDN_User { get; set; }
|
|
|
|
|
public string BunnyCDN_Password { get; set; }
|
2020-01-26 04:50:17 +00:00
|
|
|
|
public string SqlConnection { get; set; }
|
2020-01-30 23:39:14 +00:00
|
|
|
|
|
|
|
|
|
public int MaxJobs { get; set; } = 2;
|
2020-01-09 04:42:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|