summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/janus/janus.jcfg19
-rw-r--r--configs/janus/janus.plugin.ustreamer.jcfg3
-rw-r--r--configs/janus/janus.transport.websockets.jcfg4
-rw-r--r--configs/os/services/kvmd-janus-norunner.service19
-rw-r--r--configs/os/services/kvmd-janus.service16
5 files changed, 56 insertions, 5 deletions
diff --git a/configs/janus/janus.jcfg b/configs/janus/janus.jcfg
new file mode 100644
index 00000000..84aca889
--- /dev/null
+++ b/configs/janus/janus.jcfg
@@ -0,0 +1,19 @@
+general: {
+ debug_level = 4
+}
+nat: {
+ nice_debug = false
+ ice_lite = true
+ ice_tcp = false
+ full_trickle = false
+ ignore_mdns = true
+}
+media: {
+ min_nack_queue = 2000
+ rtp_port_range = "20000-40000"
+ no_media_timer = 0
+ slowlink_threshold = 10
+ twcc_period = 100
+ dtls_timeout = 1000
+ nack_optimizations = true
+}
diff --git a/configs/janus/janus.plugin.ustreamer.jcfg b/configs/janus/janus.plugin.ustreamer.jcfg
new file mode 100644
index 00000000..30b0e906
--- /dev/null
+++ b/configs/janus/janus.plugin.ustreamer.jcfg
@@ -0,0 +1,3 @@
+memsink: {
+ object = "kvmd::ustreamer::h264"
+}
diff --git a/configs/janus/janus.transport.websockets.jcfg b/configs/janus/janus.transport.websockets.jcfg
new file mode 100644
index 00000000..2cb85b71
--- /dev/null
+++ b/configs/janus/janus.transport.websockets.jcfg
@@ -0,0 +1,4 @@
+general: {
+ ws = true
+ ws_unix = "/run/kvmd/janus-ws.sock"
+}
diff --git a/configs/os/services/kvmd-janus-norunner.service b/configs/os/services/kvmd-janus-norunner.service
new file mode 100644
index 00000000..9674b3d8
--- /dev/null
+++ b/configs/os/services/kvmd-janus-norunner.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Pi-KVM - Janus WebRTC Gateway (No Runner)
+After=network.target network-online.target nss-lookup.target kvmd.service
+
+[Service]
+User=kvmd-janus
+Group=kvmd-janus
+Type=simple
+Restart=always
+RestartSec=3
+AmbientCapabilities=CAP_NET_RAW
+LimitNOFILE=65536
+
+ExecStart=/usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus
+TimeoutStopSec=5
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configs/os/services/kvmd-janus.service b/configs/os/services/kvmd-janus.service
index 9a154d29..5f4b44a8 100644
--- a/configs/os/services/kvmd-janus.service
+++ b/configs/os/services/kvmd-janus.service
@@ -1,13 +1,19 @@
[Unit]
-Description=Pi-KVM - Janus WebRTC Gateway (stub)
+Description=Pi-KVM - Janus WebRTC Gateway
After=network.target network-online.target nss-lookup.target kvmd.service
[Service]
-Type=oneshot
-ExecStart=/bin/true
-ExecStop=/bin/true
-RemainAfterExit=true
+User=kvmd-janus
+Group=kvmd-janus
+Type=simple
+Restart=always
+RestartSec=3
+AmbientCapabilities=CAP_NET_RAW
LimitNOFILE=65536
+ExecStart=/usr/bin/kvmd-janus --run
+TimeoutStopSec=5
+KillMode=mixed
+
[Install]
WantedBy=multi-user.target