mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-02 13:14:28 -04:00
* Added base url config * UI side is not working * Working base url more * Attempt to get UI to work with base url * Implemented the ability to set the Base URL for the app * Hooked in Base URL as a managed setting * Ensure we always start with / for base url * Removed default base href from debug builds. Cleaned up an issue with base url migration. * Fixed an issue with our BaseURL migration
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
namespace API.DTOs.Settings
|
|
{
|
|
public class ServerSettingDto
|
|
{
|
|
public string CacheDirectory { get; set; }
|
|
public string TaskScan { get; set; }
|
|
/// <summary>
|
|
/// Logging level for server. Managed in appsettings.json.
|
|
/// </summary>
|
|
public string LoggingLevel { get; set; }
|
|
public string TaskBackup { get; set; }
|
|
/// <summary>
|
|
/// Port the server listens on. Managed in appsettings.json.
|
|
/// </summary>
|
|
public int Port { 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>
|
|
/// Enables Authentication on the server. Defaults to true.
|
|
/// </summary>
|
|
public bool EnableAuthentication { get; set; }
|
|
/// <summary>
|
|
/// Base Url for the kavita. Defaults to "/". Managed in appsettings.json.Requires restart to take effect.
|
|
/// </summary>
|
|
public string BaseUrl { get; set; } = "/";
|
|
}
|
|
}
|