mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-19 15:39:13 -05:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="Config.cs" company="aliasvault">
|
|
// Copyright (c) aliasvault. All rights reserved.
|
|
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.Api;
|
|
|
|
using AliasVault.Shared.Models.Configuration;
|
|
|
|
/// <summary>
|
|
/// Configuration class for the Client project with values loaded from appsettings.json.
|
|
/// </summary>
|
|
public class Config : SharedConfig
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether public registration is enabled.
|
|
/// </summary>
|
|
public bool PublicRegistrationEnabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the list of private email domains that are available.
|
|
/// </summary>
|
|
public List<string> PrivateEmailDomains { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Gets or sets the list of private email domains that should be hidden from UI components.
|
|
/// These domains still function as private email domains but are not shown in domain selection dropdowns.
|
|
/// </summary>
|
|
public List<string> HiddenPrivateEmailDomains { get; set; } = [];
|
|
}
|