Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.2 KB
Raw Blame
//-----------------------------------------------------------------------
// <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 API 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 virtual 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; } = [];
}