mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-28 10:48:49 -04:00
40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
using Microsoft.Extensions.Caching.Memory;
|
|
|
|
namespace Cleanuparr.Shared.Helpers;
|
|
|
|
public static class Constants
|
|
{
|
|
public static readonly TimeSpan TriggerMaxLimit = TimeSpan.FromHours(6);
|
|
public static readonly TimeSpan TriggerMinLimit = TimeSpan.FromSeconds(30);
|
|
public static readonly TimeSpan SeekerMinLimit = TimeSpan.FromMinutes(1);
|
|
|
|
public const string HttpClientWithRetryName = "retry";
|
|
|
|
public const string HttpClientPlexAuthName = "PlexAuth";
|
|
|
|
public const string HttpClientOidcAuthName = "OidcAuth";
|
|
|
|
public const string HttpClientConnectivityName = "Connectivity";
|
|
|
|
public static readonly MemoryCacheEntryOptions DefaultCacheEntryOptions = new()
|
|
{
|
|
SlidingExpiration = TimeSpan.FromMinutes(10)
|
|
};
|
|
|
|
public const ushort DefaultSearchIntervalMinutes = 10;
|
|
public const ushort MinSearchIntervalMinutes = 2;
|
|
public const ushort MaxSearchIntervalMinutes = 360;
|
|
|
|
public const string LogoUrl = "https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr@main/Logo/48.png";
|
|
|
|
public const string TestImageUrl = "https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr@main/Logo/256.png";
|
|
|
|
public const string AppriseTestImageUrl = "https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr/Logo/256.png";
|
|
|
|
public const string CustomFormatScoreSyncerCron = "0 0/30 * * * ?";
|
|
|
|
/// <summary>
|
|
/// Byte length for random refresh tokens, signing keys and API keys.
|
|
/// </summary>
|
|
public const int TokenByteLength = 32;
|
|
} |