diff options
author | Devaev Maxim <[email protected]> | 2020-03-20 03:07:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-03-20 03:07:27 +0300 |
commit | d5ae32b1326fc5ac9207193d7679b34e0ceec4c7 (patch) | |
tree | 43bb961fd3006c06dffec900a2c84fb8387302c0 /kvmd/apps/__init__.py | |
parent | ab6264bd5e65497121139eab6deae353e06d592f (diff) |
vnc
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index c3b3a5f2..8d0ce28f 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -320,4 +320,29 @@ def _get_config_scheme() -> Dict: "file": Option("/etc/kvmd/ipmipasswd", type=valid_abs_file, unpack_as="path"), }, }, + + "vnc": { + "keymap": Option("", type=valid_abs_path), + + "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))), + }, + + "kvmd": { + "host": Option("localhost", type=valid_ip_or_host), + "port": Option(0, type=valid_port), + "unix": Option("", type=valid_abs_path, only_if="!port", unpack_as="unix_path"), + "timeout": Option(5.0, type=valid_float_f01), + }, + + "streamer": { + "host": Option("localhost", type=valid_ip_or_host), + "port": Option(0, type=valid_port), + "unix": Option("", type=valid_abs_path, only_if="!port", unpack_as="unix_path"), + "timeout": Option(5.0, type=valid_float_f01), + }, + }, } |