add webUIEnabled config

This commit is contained in:
Aria Moradi
2021-08-08 01:11:21 +04:30
parent a17d6a2ea4
commit a04cbcd814
4 changed files with 6 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ class ServerConfig(config: Config) : ConfigModule(config) {
val ip: String by config
val port: Int by config
val webUIEnabled: Boolean by config
// proxy
val socksProxyEnabled: Boolean by config
val socksProxyHost: String by config

View File

@@ -97,6 +97,7 @@ fun applicationSetup() {
// fixes #119 , ref: https://github.com/Suwayomi/Tachidesk-Server/issues/119#issuecomment-894681292
Locale.setDefault(Locale.ENGLISH)
databaseUp()
// create system tray

View File

@@ -13,7 +13,6 @@ import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.dao.id.IntIdTable
import org.jetbrains.exposed.sql.Table
@Suppress("ClassName", "unused")
/** initial migration, create all tables */
class M0001_Initial : AddTableMigration() {

View File

@@ -10,4 +10,7 @@ server.socksProxyPort = ""
# misc
server.debugLogsEnabled = false
server.systemTrayEnabled = true
# webUI
server.webUIEnabled = true
server.initialOpenInBrowserEnabled = true