feat(backend): start authentication controllers
This commit is contained in:
parent
493a6e4d29
commit
25540f2de2
15 changed files with 777 additions and 17 deletions
|
@ -4,21 +4,28 @@ namespace Foxnouns.Backend;
|
|||
|
||||
public class Config
|
||||
{
|
||||
public string Host { get; set; } = "localhost";
|
||||
public int Port { get; set; } = 3000;
|
||||
public string BaseUrl { get; set; } = null!;
|
||||
public string Host { get; init; } = "localhost";
|
||||
public int Port { get; init; } = 3000;
|
||||
public string BaseUrl { get; init; } = null!;
|
||||
|
||||
public string Address => $"http://{Host}:{Port}";
|
||||
|
||||
public string? SeqLogUrl { get; set; }
|
||||
public LogEventLevel LogEventLevel { get; set; } = LogEventLevel.Debug;
|
||||
public string? SeqLogUrl { get; init; }
|
||||
public LogEventLevel LogEventLevel { get; init; } = LogEventLevel.Debug;
|
||||
|
||||
public DatabaseConfig Database { get; set; } = new();
|
||||
public DatabaseConfig Database { get; init; } = new();
|
||||
public DiscordAuthConfig DiscordAuth { get; init; } = new();
|
||||
|
||||
public class DatabaseConfig
|
||||
{
|
||||
public string Url { get; set; } = string.Empty;
|
||||
public int? Timeout { get; set; }
|
||||
public int? MaxPoolSize { get; set; }
|
||||
public string Url { get; init; } = string.Empty;
|
||||
public int? Timeout { get; init; }
|
||||
public int? MaxPoolSize { get; init; }
|
||||
}
|
||||
|
||||
public class DiscordAuthConfig
|
||||
{
|
||||
public string? ClientId { get; init; }
|
||||
public string? ClientSecret { get; init; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue