wabbajack/Wabbajack.Server/AppSettings.cs

28 lines
998 B
C#
Raw Normal View History

2021-10-23 16:51:17 +00:00
using Microsoft.Extensions.Configuration;
2021-09-27 12:42:46 +00:00
using Wabbajack.Paths;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.BuildServer;
public class AppSettings
{
2021-10-23 16:51:17 +00:00
public AppSettings(IConfiguration config)
{
2021-10-23 16:51:17 +00:00
config.Bind("WabbajackSettings", this);
}
2021-10-23 16:51:17 +00:00
public bool TestMode { get; set; }
2021-11-27 18:31:35 +00:00
public string AuthorAPIKeyFile { get; set; }
2021-10-23 16:51:17 +00:00
public string WabbajackBuildServerUri { get; set; } = "https://build.wabbajack.org/";
public string MetricsKeyHeader { get; set; } = "x-metrics-key";
public string TempFolder { get; set; }
public AbsolutePath TempPath => (AbsolutePath) TempFolder;
public string SpamWebHook { get; set; } = null;
public string HamWebHook { get; set; } = null;
2021-11-27 18:31:35 +00:00
public string AuthoredFilesFolder { get; set; }
public string PatchesFilesFolder { get; set; }
2021-12-17 23:40:45 +00:00
public string MirrorFilesFolder { get; set; }
2021-11-27 20:18:41 +00:00
public string MetricsFolder { get; set; } = "";
2021-11-27 18:31:35 +00:00
public string TarLogPath { get; set; }
2021-11-27 20:18:41 +00:00
public string GitHubKey { get; set; } = "";
2021-10-23 16:51:17 +00:00
}