refactor: remove deprecated configuration properties

This commit is contained in:
Gauthier Roebroeck 2024-12-13 10:38:19 +08:00
parent 051cfb7248
commit 7984be2a72

View File

@ -25,34 +25,12 @@ class KomgaProperties {
}
}
@Deprecated("Moved to library options since 1.5.0")
var librariesScanCron: String = ""
@Deprecated("Moved to library options since 1.5.0")
var librariesScanStartup: Boolean = false
@Deprecated("Moved to library options since 1.5.0")
var librariesScanDirectoryExclusions: List<String> = emptyList()
@Deprecated("Moved to server settings since 1.5.0")
var deleteEmptyReadLists: Boolean = true
@Deprecated("Moved to server settings since 1.5.0")
var deleteEmptyCollections: Boolean = true
@Positive
var pageHashing: Int = 3
@Positive
var epubDivinaLetterCountThreshold: Int = 15
@Deprecated("Moved to server settings since 1.5.0")
var rememberMe = RememberMe()
@Deprecated("Removed since 1.5.0", ReplaceWith("server.servlet.session.timeout"))
@DurationUnit(ChronoUnit.SECONDS)
var sessionTimeout: Duration = Duration.ofMinutes(30)
var oauth2AccountCreation: Boolean = false
var oidcEmailVerification: Boolean = true
@ -69,25 +47,6 @@ class KomgaProperties {
var kobo = Kobo()
@Positive
@Deprecated("Artemis has been replaced")
var taskConsumers: Int = 1
@Positive
@Deprecated("Artemis has been replaced")
var taskConsumersMax: Int = 1
@Deprecated("Moved to server settings since 1.5.0")
class RememberMe {
@Deprecated("Moved to server settings since 1.5.0")
@get:NotBlank
var key: String? = null
@Deprecated("Moved to server settings since 1.5.0")
@DurationUnit(ChronoUnit.SECONDS)
var validity: Duration = Duration.ofDays(14)
}
class Cors {
var allowedOrigins: List<String> = emptyList()
}