diff options
author | Devaev Maxim <[email protected]> | 2021-05-02 04:01:52 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-02 04:01:58 +0300 |
commit | 0b700eab22c3467c43e9755ba5b08d056ef2895f (patch) | |
tree | cdcdbe9e869482be441c852bf7c3e9ae3141cd3c | |
parent | b43aa5056788ebb10f27e8a1bef5a005631011f6 (diff) |
janus nginx configs and user
-rw-r--r-- | configs/os/sysusers.conf | 3 | ||||
-rw-r--r-- | extras/janus/nginx.ctx-http.conf | 3 | ||||
-rw-r--r-- | extras/janus/nginx.ctx-server.conf | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/configs/os/sysusers.conf b/configs/os/sysusers.conf index ac6dee3d..a29e3a10 100644 --- a/configs/os/sysusers.conf +++ b/configs/os/sysusers.conf @@ -2,11 +2,13 @@ g kvmd - - g kvmd-ipmi - - g kvmd-vnc - - g kvmd-nginx - - +g kvmd-janus - - u kvmd - "Pi-KVM - The main daemon" - u kvmd-ipmi - "Pi-KVM - IPMI to KVMD proxy" - u kvmd-vnc - "Pi-KVM - VNC to KVMD/Streamer proxy" - u kvmd-nginx - "Pi-KVM - HTTP entrypoint" - +u kvmd-janus - "Pi-KVM - Janus WebRTC Gateway" - m kvmd gpio m kvmd uucp @@ -15,5 +17,6 @@ m kvmd systemd-journal m kvmd-ipmi kvmd m kvmd-vnc kvmd +m kvmd-janus kvmd m kvmd-nginx kvmd diff --git a/extras/janus/nginx.ctx-http.conf b/extras/janus/nginx.ctx-http.conf new file mode 100644 index 00000000..81dd8913 --- /dev/null +++ b/extras/janus/nginx.ctx-http.conf @@ -0,0 +1,3 @@ +upstream janus-ws { + server unix:/run/kvmd/janus-ws.sock fail_timeout=0s max_fails=0; +} diff --git a/extras/janus/nginx.ctx-server.conf b/extras/janus/nginx.ctx-server.conf new file mode 100644 index 00000000..d17a7288 --- /dev/null +++ b/extras/janus/nginx.ctx-server.conf @@ -0,0 +1,7 @@ +location /janus/ws { + rewrite ^/janus/ws$ / break; + rewrite ^/janus/ws\?(.*)$ /?$1 break; + proxy_pass http://janus-ws; + include /etc/kvmd/nginx/loc-proxy.conf; + include /etc/kvmd/nginx/loc-websocket.conf; +} |