Files
aliasvault/apps/server/AliasVault.Api/Config.cs
2025-11-21 06:45:05 +01:00

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; } = [];
}