mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
初步整合:
1. python 内置服务器 2. 将配置文件统一目录
This commit is contained in:
7
kvmd_data/usr/share/kvmd/extras/ipmi/manifest.yaml
Normal file
7
kvmd_data/usr/share/kvmd/extras/ipmi/manifest.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
name: IPMI
|
||||
description: Show IPMI information
|
||||
icon: share/svg/ipmi.svg
|
||||
path: ipmi
|
||||
daemon: kvmd-ipmi
|
||||
port: ipmi/server/port
|
||||
place: 21
|
||||
@@ -0,0 +1,5 @@
|
||||
name: Janus Static
|
||||
description: Janus WebRTC Gateway (Static Config)
|
||||
path: janus
|
||||
daemon: kvmd-janus-static
|
||||
place: -1
|
||||
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;
|
||||
}
|
||||
7
kvmd_data/usr/share/kvmd/extras/vnc/manifest.yaml
Normal file
7
kvmd_data/usr/share/kvmd/extras/vnc/manifest.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
name: VNC
|
||||
description: Show VNC information
|
||||
icon: share/svg/vnc.svg
|
||||
path: vnc
|
||||
daemon: kvmd-vnc
|
||||
port: vnc/server/port
|
||||
place: 20
|
||||
6
kvmd_data/usr/share/kvmd/extras/webterm/manifest.yaml
Normal file
6
kvmd_data/usr/share/kvmd/extras/webterm/manifest.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
name: Terminal
|
||||
description: Open terminal in a web browser
|
||||
icon: extras/webterm/terminal.svg
|
||||
path: extras/webterm/ttyd
|
||||
daemon: kvmd-webterm
|
||||
place: 10
|
||||
@@ -0,0 +1,3 @@
|
||||
upstream ttyd {
|
||||
server unix:/run/kvmd/ttyd.sock fail_timeout=0s max_fails=0;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
location /extras/webterm/ttyd {
|
||||
rewrite ^([^.\?]*[^/(/ws)])$ $1/ permanent;
|
||||
rewrite ^/extras/webterm/ttyd$ / break;
|
||||
rewrite ^/extras/webterm/ttyd\?(.*)$ ?$1 break;
|
||||
rewrite ^/extras/webterm/ttyd/(.*)$ /$1 break;
|
||||
proxy_pass http://ttyd;
|
||||
include /etc/kvmd/nginx/loc-proxy.conf;
|
||||
include /etc/kvmd/nginx/loc-websocket.conf;
|
||||
include /etc/kvmd/nginx/loc-login.conf;
|
||||
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user