mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
60 lines
1.8 KiB
C#
60 lines
1.8 KiB
C#
using Amazon.S3;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Wabbajack.Paths;
|
|
|
|
namespace Wabbajack.BuildServer;
|
|
|
|
public class AppSettings
|
|
{
|
|
public AppSettings(IConfiguration config)
|
|
{
|
|
config.Bind("WabbajackSettings", this);
|
|
}
|
|
public bool TestMode { get; set; }
|
|
public bool RunBackendNexusRoutines { get; set; } = true;
|
|
public string AuthorAPIKeyFile { get; set; }
|
|
|
|
public string TarKeyFile { get; set; }
|
|
public string WabbajackBuildServerUri { get; set; } = "https://build.wabbajack.org/";
|
|
public string MetricsKeyHeader { get; set; } = "x-metrics-key";
|
|
public string TempFolder { get; set; }
|
|
|
|
public string ProxyFolder { get; set; }
|
|
public AbsolutePath ProxyPath => (AbsolutePath) ProxyFolder;
|
|
public AbsolutePath TempPath => (AbsolutePath) TempFolder;
|
|
public string SpamWebHook { get; set; } = "";
|
|
public string HamWebHook { get; set; } = "";
|
|
|
|
public string DiscordKey { get; set; }
|
|
|
|
public string PatchesFilesFolder { get; set; }
|
|
public string MirrorFilesFolder { get; set; }
|
|
public string NexusCacheFolder { get; set; }
|
|
public string MetricsFolder { get; set; } = "";
|
|
public string TarLogPath { get; set; }
|
|
public string GitHubKey { get; set; } = "";
|
|
|
|
public CouchDBSetting CesiDB { get; set; }
|
|
public CouchDBSetting MetricsDB { get; set; }
|
|
|
|
public S3Settings AuthoredFilesS3 { get; set; }
|
|
}
|
|
|
|
public class S3Settings
|
|
{
|
|
public string AccessKey { get; set; }
|
|
public string SecretKey { get; set; }
|
|
public string ServiceURL { get; set; }
|
|
|
|
public string BucketName { get; set; }
|
|
|
|
public string BucketCacheFile { get; set; }
|
|
}
|
|
|
|
public class CouchDBSetting
|
|
{
|
|
public Uri Endpoint { get; set; }
|
|
public string Database { get; set; }
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
} |