mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-06 15:58:09 -05:00
57 lines
2.0 KiB
C#
57 lines
2.0 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="ServerSettingsModel.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.Shared.Server.Models;
|
|
|
|
/// <summary>
|
|
/// Server settings model.
|
|
/// </summary>
|
|
public class ServerSettingsModel
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the general log retention days. Defaults to 30.
|
|
/// </summary>
|
|
public int GeneralLogRetentionDays { get; set; } = 30;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the auth log retention days. Defaults to 30.
|
|
/// </summary>
|
|
public int AuthLogRetentionDays { get; set; } = 30;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the email retention days. Defaults to 0 (unlimited).
|
|
/// </summary>
|
|
public int EmailRetentionDays { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the max emails per user. Defaults to 0 (unlimited).
|
|
/// </summary>
|
|
public int MaxEmailsPerUser { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the time when maintenance tasks are run (24h format). Defaults to 00:00.
|
|
/// </summary>
|
|
public TimeOnly MaintenanceTime { get; set; } = new(0, 0);
|
|
|
|
/// <summary>
|
|
/// Gets or sets the task runner days. Defaults to all days of the week.
|
|
/// </summary>
|
|
public List<int> TaskRunnerDays { get; set; } = [1, 2, 3, 4, 5, 6, 7];
|
|
|
|
/// <summary>
|
|
/// Gets or sets the short refresh token lifetime in hours. Defaults to 8 hours.
|
|
/// Used when "Remember me" is not checked.
|
|
/// </summary>
|
|
public int RefreshTokenLifetimeShort { get; set; } = 8;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the long refresh token lifetime in hours. Defaults to 336 hours / 14 days.
|
|
/// Used when "Remember me" is checked.
|
|
/// </summary>
|
|
public int RefreshTokenLifetimeLong { get; set; } = 336;
|
|
}
|