summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-24 05:03:45 +0300
committerDevaev Maxim <[email protected]>2021-05-24 05:08:53 +0300
commit19a68887e4083755af9f3edcb59c69e89b34b6f7 (patch)
treeeee102f2cf1312121d8af606e0bdeabb507fb236 /kvmd/apps/__init__.py
parent9cead6203295e55c25b9a011a6da93509d05e79f (diff)
janus runner draft
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 30992f33..4f6f160d 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -658,4 +658,29 @@ def _get_config_scheme() -> Dict:
},
},
},
+
+ "janus": {
+ "stun": {
+ "host": Option("stun.l.google.com", type=valid_ip_or_host, unpack_as="stun_host"),
+ "port": Option(19302, type=valid_port, unpack_as="stun_port"),
+ "timeout": Option(5.0, type=valid_float_f01, unpack_as="stun_timeout"),
+ },
+
+ "check": {
+ "interval": Option(10.0, type=valid_float_f01, unpack_as="check_interval"),
+ "retries": Option(5, type=valid_int_f1, unpack_as="check_retries"),
+ "retries_delay": Option(5.0, type=valid_float_f01, unpack_as="check_retries_delay"),
+ },
+
+ "cmd": Option([
+ "/usr/bin/janus",
+ "--disable-colors",
+ "--plugins-folder=/usr/lib/ustreamer/janus",
+ "--configs-folder=/etc/kvmd/janus",
+ "--interface={src_ip}",
+ "--stun-server={stun_host}:{stun_port}",
+ ], type=valid_command),
+ "cmd_remove": Option([], type=valid_options),
+ "cmd_append": Option([], type=valid_options),
+ },
}