wabbajack/Wabbajack.Server/AppSettings.cs

24 lines
838 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 MetricsFolder { get; set; }
public string TarLogPath { get; set; }
2021-10-23 16:51:17 +00:00
}