2021-09-27 12:42:46 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Wabbajack.Paths;
|
2020-05-09 03:56:06 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack.BuildServer
|
|
|
|
|
{
|
|
|
|
|
public class AppSettings
|
|
|
|
|
{
|
2021-09-27 12:42:46 +00:00
|
|
|
|
public bool TestMode { get; set; }
|
|
|
|
|
public string AuthorAPIKeyFile { get; set; } = "exported_users";
|
|
|
|
|
|
|
|
|
|
public string CompressedBodyHeader { get; set; } = "x-compressed-body";
|
|
|
|
|
public string WabbajackBuildServerUri { get; set; } = "https://build.wabbajack.org/";
|
|
|
|
|
|
2020-05-09 03:56:06 +00:00
|
|
|
|
public AppSettings(IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
config.Bind("WabbajackSettings", this);
|
|
|
|
|
}
|
2021-09-27 12:42:46 +00:00
|
|
|
|
|
|
|
|
|
public string MetricsKeyHeader { get; set; } = "x-metrics-key";
|
2020-05-09 03:56:06 +00:00
|
|
|
|
|
|
|
|
|
public string DownloadDir { get; set; }
|
|
|
|
|
public AbsolutePath DownloadPath => (AbsolutePath)DownloadDir;
|
|
|
|
|
public string ArchiveDir { get; set; }
|
|
|
|
|
public AbsolutePath ArchivePath => (AbsolutePath)ArchiveDir;
|
|
|
|
|
|
|
|
|
|
public string TempFolder { get; set; }
|
|
|
|
|
|
|
|
|
|
public AbsolutePath TempPath => (AbsolutePath)TempFolder;
|
|
|
|
|
|
|
|
|
|
public bool JobScheduler { get; set; }
|
|
|
|
|
public bool JobRunner { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool RunFrontEndJobs { get; set; }
|
|
|
|
|
public bool RunBackEndJobs { get; set; }
|
|
|
|
|
|
2020-05-16 15:08:40 +00:00
|
|
|
|
public bool RunNexusPolling { get; set; }
|
|
|
|
|
public bool RunDownloader { get; set; }
|
|
|
|
|
|
2020-05-09 22:16:16 +00:00
|
|
|
|
public string BunnyCDN_StorageZone { get; set; }
|
2020-05-09 03:56:06 +00:00
|
|
|
|
public string SqlConnection { get; set; }
|
|
|
|
|
|
|
|
|
|
public int MaxJobs { get; set; } = 2;
|
2020-05-15 05:25:02 +00:00
|
|
|
|
|
|
|
|
|
public string SpamWebHook { get; set; } = null;
|
|
|
|
|
public string HamWebHook { get; set; } = null;
|
2020-06-05 21:34:23 +00:00
|
|
|
|
public bool ValidateModUpgrades { get; set; } = true;
|
2020-05-09 03:56:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|