janus nginx configs and user

This commit is contained in:
Devaev Maxim 2021-05-02 04:01:52 +03:00
parent b43aa50567
commit 0b700eab22
3 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,3 @@
upstream janus-ws {
server unix:/run/kvmd/janus-ws.sock fail_timeout=0s max_fails=0;
}

View File

@ -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;
}