add BasicAuth support

This commit is contained in:
Aria Moradi
2021-09-14 04:17:01 +04:30
parent 0173d5e4b3
commit bd638251e4
3 changed files with 22 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ class ServerConfig(config: Config, moduleName: String = MODULE_NAME) : SystemPro
val webUIInterface: String by overridableConfig
val electronPath: String by overridableConfig
// Authentication
val basicAuthEnabled: Boolean by overridableConfig
val basicAuthUsername: String by overridableConfig
val basicAuthPassword: String by overridableConfig
companion object {
fun register(config: Config) = ServerConfig(config.getConfig(MODULE_NAME))
}