初步整合:

1. python 内置服务器
2. 将配置文件统一目录
This commit is contained in:
mofeng-git
2025-01-01 14:26:22 +00:00
parent 5db37797ea
commit d5a0b1a8b3
411 changed files with 7387 additions and 7263 deletions

View 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

View File

@@ -0,0 +1,5 @@
name: Janus Static
description: Janus WebRTC Gateway (Static Config)
path: janus
daemon: kvmd-janus-static
place: -1

View File

@@ -0,0 +1,5 @@
name: Janus
description: Janus WebRTC Gateway
path: janus
daemon: kvmd-janus
place: -1

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

View 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

View 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

View File

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

View File

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