2022-01-25 16:17:48 +00:00
|
|
|
|
namespace VoidCat.Model
|
|
|
|
|
{
|
|
|
|
|
public class VoidSettings
|
|
|
|
|
{
|
2022-01-25 23:39:51 +00:00
|
|
|
|
public string DataDirectory { get; init; } = "./data";
|
2022-02-13 15:44:17 +00:00
|
|
|
|
|
|
|
|
|
public TorSettings? TorSettings { get; init; }
|
|
|
|
|
|
2022-02-16 16:33:00 +00:00
|
|
|
|
public JwtSettings JwtSettings { get; init; } = new("void_cat_internal", "default_key");
|
2022-02-16 23:19:31 +00:00
|
|
|
|
|
|
|
|
|
public string? Redis { get; init; }
|
2022-01-25 16:17:48 +00:00
|
|
|
|
}
|
2022-02-16 16:33:00 +00:00
|
|
|
|
|
|
|
|
|
public sealed record TorSettings(Uri TorControl, string PrivateKey, string ControlPassword);
|
|
|
|
|
|
|
|
|
|
public sealed record JwtSettings(string Issuer, string Key);
|
2022-01-25 16:17:48 +00:00
|
|
|
|
}
|