diff options
author | Devaev Maxim <[email protected]> | 2020-04-23 11:17:22 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-04-23 11:17:31 +0300 |
commit | 75669466cf6b68fbe209a6d2232aec6d49a51044 (patch) | |
tree | 74bdd3064eb76e0d5b6cabd2c6df07bc425e8ea5 /kvmd/apps/__init__.py | |
parent | 820ef178710d8442e30c5b23d0ac0cb90be5150c (diff) |
vnc: anon tls encryption
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 1c29b182..7d9b7425 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -69,6 +69,7 @@ from ..validators.net import valid_ip_or_host from ..validators.net import valid_ip from ..validators.net import valid_port from ..validators.net import valid_mac +from ..validators.net import valid_ssl_ciphers from ..validators.kvm import valid_stream_quality from ..validators.kvm import valid_stream_fps @@ -328,8 +329,11 @@ def _get_config_scheme() -> Dict: "server": { "host": Option("::", type=valid_ip_or_host), "port": Option(5900, type=valid_port), - # TODO: timeout "max_clients": Option(10, type=(lambda arg: valid_number(arg, min=1))), + "tls": { + "ciphers": Option("ALL:@SECLEVEL=0", type=valid_ssl_ciphers), + "timeout": Option(5.0, type=valid_float_f01), + }, }, "kvmd": { |