mirror of
https://github.com/gotson/komga.git
synced 2025-01-07 03:07:16 +08:00
refactor: remove deprecated configuration properties
This commit is contained in:
parent
051cfb7248
commit
7984be2a72
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user