solution: configuration for Websocket proxy

This commit is contained in:
Igor Artamonov
2021-10-27 20:34:04 -04:00
parent dc3c7b1249
commit 133937822c
3 changed files with 21 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ class ProxyConfigReader : YamlConfigReader(), ConfigReader<ProxyConfig> {
getValueAsBool(input, "enabled")?.let {
config.enabled = it
}
getValueAsBool(input, "websocket")?.let {
config.websocketEnabled = it
}
val currentRoutes = HashSet<String>()
getList<MappingNode>(input, "routes")?.let { routes ->
config.routes = routes.value.map { route ->