Co-authored-by: JeanPaulDOT <jp.houssier@gmail.com> Co-authored-by: Francois Wilhelmy <ice_mouton@hotmail.com> Co-authored-by: Gazy Mahomar <gmahomarf@gmail.com> Co-authored-by: Stijn <stijn.biemans@gmail.com> Co-authored-by: 無情天 <kofzhanganguo@126.com> Co-authored-by: Havokdan <havokdan@yahoo.com.br> Co-authored-by: Andre <andruecha32@gmail.com> Co-authored-by: Mateusz <mateuszvx8.96@gmail.com> Co-authored-by: Antonio Sanchez Castellón <angelfx19@gmail.com> Co-authored-by: Duarte Silva <smallflake@protonmail.com> Co-authored-by: LeeWan1210 <dldhks456@live.com> Co-authored-by: aleixcox <18121624@qq.com> Co-authored-by: Tomas Battistini <tomas.battistini@gmail.com> Co-authored-by: mareczek82 <marek.posiadala@gmail.com> Co-authored-by: Hans Kalisvaart <hans.kalisvaart@gmail.com> Co-authored-by: majora2007 <kavitareader@gmail.com> Co-authored-by: afermar <adrian.fm@protonmail.com> Co-authored-by: oxygen44k <iiccpp@outlook.com> Co-authored-by: Weblate (bot) <hosted@weblate.org> Co-authored-by: Hadrien b <hadrien.1997@gmail.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com> Co-authored-by: Andre Smith <Hobogrammer@users.noreply.github.com> Co-authored-by: Safu Wan <safu@yahoo.com> Co-authored-by: sibeck <sibeck.clown@gmail.com> Co-authored-by: Florestano Pepe <florestano.pepe@gmail.com> Co-authored-by: 书签 <shuqian.emu@gmail.com> Co-authored-by: Stéphane Dupont <aleistor@gmail.com> Co-authored-by: gallegonovato <fran-carro@hotmail.es> Co-authored-by: AlienHack <the4got10@windowslive.com> Co-authored-by: 周書丞 <tmrsm_chan@hotmail.com> Co-authored-by: Andre Smith <andrepsmithjr@gmail.com> Co-authored-by: xe1st <dnzkckali@gmail.com> Co-authored-by: Jiří Heger <jiri.heger@gmail.com> Co-authored-by: DR <weblate-kavita.snowflake668@slmail.me> Co-authored-by: Mathieu Ares <matguitarist@gmail.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Gazy Mahomar <gmahomarf@users.noreply.github.com> Co-authored-by: Elias Jakob <elias.jakob100@gmail.com> Co-authored-by: Christian Zanon <chri8431@libero.it> Co-authored-by: Eryk Michalak <gnu.ewm@protonmail.com> Co-authored-by: Hoshino0881118 <hoshino0881118@gmail.com>
152 lines
5 KiB
C#
152 lines
5 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace API.Entities.Enums;
|
|
|
|
/// <summary>
|
|
/// 15 is blocked as it was EnableSwaggerUi, which is no longer used
|
|
/// </summary>
|
|
public enum ServerSettingKey
|
|
{
|
|
/// <summary>
|
|
/// Cron format for how often full library scans are performed.
|
|
/// </summary>
|
|
[Description("TaskScan")]
|
|
TaskScan = 0,
|
|
/// <summary>
|
|
/// Where files are cached. Not currently used.
|
|
/// </summary>
|
|
[Description("CacheDirectory")]
|
|
CacheDirectory = 1,
|
|
/// <summary>
|
|
/// Cron format for how often backups are taken.
|
|
/// </summary>
|
|
[Description("TaskBackup")]
|
|
TaskBackup = 2,
|
|
/// <summary>
|
|
/// Logging level for Server. Not managed in DB. Managed in appsettings.json and synced to DB.
|
|
/// </summary>
|
|
[Description("LoggingLevel")]
|
|
LoggingLevel = 3,
|
|
/// <summary>
|
|
/// Port server listens on. Not managed in DB. Managed in appsettings.json and synced to DB.
|
|
/// </summary>
|
|
[Description("Port")]
|
|
Port = 4,
|
|
/// <summary>
|
|
/// Where the backups are stored.
|
|
/// </summary>
|
|
[Description("BackupDirectory")]
|
|
BackupDirectory = 5,
|
|
/// <summary>
|
|
/// Allow anonymous data to be reported to KavitaStats
|
|
/// </summary>
|
|
[Description("AllowStatCollection")]
|
|
AllowStatCollection = 6,
|
|
/// <summary>
|
|
/// Is OPDS enabled for the server
|
|
/// </summary>
|
|
[Description("EnableOpds")]
|
|
EnableOpds = 7,
|
|
/// <summary>
|
|
/// Is Authentication needed for non-admin accounts
|
|
/// </summary>
|
|
/// <remarks>Deprecated. This is no longer used v0.5.1+. Assume Authentication is always in effect</remarks>
|
|
[Description("EnableAuthentication")]
|
|
EnableAuthentication = 8,
|
|
/// <summary>
|
|
/// Base Url for the server. Not Implemented.
|
|
/// </summary>
|
|
[Description("BaseUrl")]
|
|
BaseUrl = 9,
|
|
/// <summary>
|
|
/// Represents this installation of Kavita. Is tied to Stat reporting but has no information about user or files.
|
|
/// </summary>
|
|
[Description("InstallId")]
|
|
InstallId = 10,
|
|
/// <summary>
|
|
/// Represents the version the software is running.
|
|
/// </summary>
|
|
/// <remarks>This will be updated on Startup to the latest release. Provides ability to detect if certain migrations need to be run.</remarks>
|
|
[Description("InstallVersion")]
|
|
InstallVersion = 11,
|
|
/// <summary>
|
|
/// Location of where bookmarks are stored
|
|
/// </summary>
|
|
[Description("BookmarkDirectory")]
|
|
BookmarkDirectory = 12,
|
|
/// <summary>
|
|
/// If SMTP is enabled on the server
|
|
/// </summary>
|
|
[Description("CustomEmailService")]
|
|
EmailServiceUrl = 13,
|
|
/// <summary>
|
|
/// If Kavita should save bookmarks as WebP images
|
|
/// </summary>
|
|
[Obsolete("Use EncodeMediaAs instead")]
|
|
[Description("ConvertBookmarkToWebP")]
|
|
ConvertBookmarkToWebP = 14,
|
|
/// <summary>
|
|
/// Total Number of Backups to maintain before cleaning. Default 30, min 1.
|
|
/// </summary>
|
|
[Description("TotalBackups")]
|
|
TotalBackups = 16,
|
|
/// <summary>
|
|
/// If Kavita should watch the library folders and process changes
|
|
/// </summary>
|
|
[Description("EnableFolderWatching")]
|
|
EnableFolderWatching = 17,
|
|
/// <summary>
|
|
/// Total number of days worth of logs to keep
|
|
/// </summary>
|
|
[Description("TotalLogs")]
|
|
TotalLogs = 18,
|
|
/// <summary>
|
|
/// If Kavita should save covers as WebP images
|
|
/// </summary>
|
|
[Obsolete("Use EncodeMediaAs instead")]
|
|
[Description("ConvertCoverToWebP")]
|
|
ConvertCoverToWebP = 19,
|
|
/// <summary>
|
|
/// The Host name (ie Reverse proxy domain name) for the server. Used for email link generation
|
|
/// </summary>
|
|
[Description("HostName")]
|
|
HostName = 20,
|
|
/// <summary>
|
|
/// Ip addresses the server listens on. Not managed in DB. Managed in appsettings.json and synced to DB.
|
|
/// </summary>
|
|
[Description("IpAddresses")]
|
|
IpAddresses = 21,
|
|
/// <summary>
|
|
/// Encode all media as PNG/WebP/AVIF/etc.
|
|
/// </summary>
|
|
/// <remarks>As of v0.7.3 this replaced ConvertCoverToWebP and ConvertBookmarkToWebP</remarks>
|
|
[Description("EncodeMediaAs")]
|
|
EncodeMediaAs = 22,
|
|
/// <summary>
|
|
/// A Kavita+ Subscription license key
|
|
/// </summary>
|
|
[Description("LicenseKey")]
|
|
LicenseKey = 23,
|
|
/// <summary>
|
|
/// The size in MB for Caching API data
|
|
/// </summary>
|
|
[Description("Cache")]
|
|
CacheSize = 24,
|
|
/// <summary>
|
|
/// How many Days since today in the past for reading progress, should content be considered for On Deck, before it gets removed automatically
|
|
/// </summary>
|
|
[Description("OnDeckProgressDays")]
|
|
OnDeckProgressDays = 25,
|
|
/// <summary>
|
|
/// How many Days since today in the past for chapter updates, should content be considered for On Deck, before it gets removed automatically
|
|
/// </summary>
|
|
[Description("OnDeckUpdateDays")]
|
|
OnDeckUpdateDays = 26,
|
|
/// <summary>
|
|
/// The size of the cover image thumbnail. Defaults to <see cref="CoverImageSize"/>.Default
|
|
/// </summary>
|
|
[Description("CoverImageSize")]
|
|
CoverImageSize = 27
|
|
|
|
}
|