mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 04:04:19 -04:00
* Added an FAQ link on the Kavita+ tab. * Don't query Kavita+ for ratings on comic libraries as there is no upstream provider yet. * Jumpbar keys are a little hard to click * Fixed an issue where libraries that don't allow scrobbling could be scrobbled when generating past history with read events. * Made the min/max release year on metadata filter number and removed the spin arrows for styling. * Fixed disable tabs color contrast due to bootstrap undocumented change. * Refactored whole codebase to unify caching mechanism. Upped the default cache memory amount to 75 to account for the extra data load. Still LRU. Fixed an issue where Cache key was using Port instead. Refactored all the Configuration code to use strongly typed deserialization. * Fixed an issue where get latest progress would throw an exception if there was no progress due to LINQ and MAX query. * Fixed a bug where Send to Device wasn't present on Series cards. * Hooked up the ability to change the cache size for Kavita via the UI.
80 lines
3.1 KiB
C#
80 lines
3.1 KiB
C#
using API.Entities.Enums;
|
|
using API.Services;
|
|
|
|
namespace API.DTOs.Settings;
|
|
|
|
public class ServerSettingDto
|
|
{
|
|
|
|
public string CacheDirectory { get; set; } = default!;
|
|
public string TaskScan { get; set; } = default!;
|
|
/// <summary>
|
|
/// Logging level for server. Managed in appsettings.json.
|
|
/// </summary>
|
|
public string LoggingLevel { get; set; } = default!;
|
|
public string TaskBackup { get; set; } = default!;
|
|
/// <summary>
|
|
/// Port the server listens on. Managed in appsettings.json.
|
|
/// </summary>
|
|
public int Port { get; set; }
|
|
/// <summary>
|
|
/// Comma separated list of ip addresses the server listens on. Managed in appsettings.json
|
|
/// </summary>
|
|
public string IpAddresses { get; set; }
|
|
/// <summary>
|
|
/// Allows anonymous information to be collected and sent to KavitaStats
|
|
/// </summary>
|
|
public bool AllowStatCollection { get; set; }
|
|
/// <summary>
|
|
/// Enables OPDS connections to be made to the server.
|
|
/// </summary>
|
|
public bool EnableOpds { get; set; }
|
|
/// <summary>
|
|
/// Base Url for the kavita. Requires restart to take effect.
|
|
/// </summary>
|
|
public string BaseUrl { get; set; } = default!;
|
|
/// <summary>
|
|
/// Where Bookmarks are stored.
|
|
/// </summary>
|
|
/// <remarks>If null or empty string, will default back to default install setting aka <see cref="DirectoryService.BookmarkDirectory"/></remarks>
|
|
public string BookmarksDirectory { get; set; } = default!;
|
|
/// <summary>
|
|
/// Email service to use for the invite user flow, forgot password, etc.
|
|
/// </summary>
|
|
/// <remarks>If null or empty string, will default back to default install setting aka <see cref="EmailService.DefaultApiUrl"/></remarks>
|
|
public string EmailServiceUrl { get; set; } = default!;
|
|
public string InstallVersion { get; set; } = default!;
|
|
/// <summary>
|
|
/// Represents a unique Id to this Kavita installation. Only used in Stats to identify unique installs.
|
|
/// </summary>
|
|
public string InstallId { get; set; } = default!;
|
|
/// <summary>
|
|
/// The format that should be used when saving media for Kavita
|
|
/// </summary>
|
|
/// <example>This includes things like: Covers, Bookmarks, Favicons</example>
|
|
public EncodeFormat EncodeMediaAs { get; set; }
|
|
|
|
/// <summary>
|
|
/// The amount of Backups before cleanup
|
|
/// </summary>
|
|
/// <remarks>Value should be between 1 and 30</remarks>
|
|
public int TotalBackups { get; set; } = 30;
|
|
/// <summary>
|
|
/// If Kavita should watch the library folders and process changes
|
|
/// </summary>
|
|
public bool EnableFolderWatching { get; set; } = true;
|
|
/// <summary>
|
|
/// Total number of days worth of logs to keep at a given time.
|
|
/// </summary>
|
|
/// <remarks>Value should be between 1 and 30</remarks>
|
|
public int TotalLogs { get; set; }
|
|
/// <summary>
|
|
/// The Host name (ie Reverse proxy domain name) for the server
|
|
/// </summary>
|
|
public string HostName { get; set; }
|
|
/// <summary>
|
|
/// The size in MB for Caching API data
|
|
/// </summary>
|
|
public long CacheSize { get; set; }
|
|
}
|