mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
初步整合:
1. python 内置服务器 2. 将配置文件统一目录
This commit is contained in:
5
kvmd_data/usr/share/kvmd/extras/janus/manifest.yaml
Normal file
5
kvmd_data/usr/share/kvmd/extras/janus/manifest.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
name: Janus
|
||||
description: Janus WebRTC Gateway
|
||||
path: janus
|
||||
daemon: kvmd-janus
|
||||
place: -1
|
||||
@@ -0,0 +1,3 @@
|
||||
upstream janus-ws {
|
||||
server unix:/run/kvmd/janus-ws.sock fail_timeout=0s max_fails=0;
|
||||
}
|
||||
17
kvmd_data/usr/share/kvmd/extras/janus/nginx.ctx-server.conf
Normal file
17
kvmd_data/usr/share/kvmd/extras/janus/nginx.ctx-server.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
|
||||
location = /share/js/kvm/janus.js {
|
||||
alias /usr/share/janus/javascript/janus.js;
|
||||
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||
}
|
||||
|
||||
location = /share/js/kvm/adapter.js {
|
||||
alias /usr/share/janus/javascript/adapter.js;
|
||||
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user