mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
122 lines
3.0 KiB
YAML
122 lines
3.0 KiB
YAML
kvmd:
|
|
server:
|
|
unix_mode: 0666
|
|
|
|
info:
|
|
hw:
|
|
procfs_prefix: /fake_procfs
|
|
sysfs_prefix: /fake_sysfs
|
|
|
|
hid:
|
|
keyboard:
|
|
device: /dev/null
|
|
mouse:
|
|
device: /dev/null
|
|
noop: true
|
|
|
|
msd:
|
|
remount_cmd: /bin/true
|
|
unlock_cmd: /bin/true
|
|
sysfs_prefix: /fake_sysfs
|
|
|
|
streamer:
|
|
desired_fps: 30
|
|
max_fps: 40
|
|
cmd:
|
|
- "/usr/bin/ustreamer"
|
|
- "--device=/dev/kvmd-video"
|
|
- "--quality={quality}"
|
|
- "--desired-fps={desired_fps}"
|
|
- "--resolution=800x600"
|
|
- "--last-as-blank=0"
|
|
- "--unix={unix}"
|
|
- "--unix-rm"
|
|
- "--unix-mode=0666"
|
|
- "--exit-on-parent-death"
|
|
- "--process-name-prefix={process_name_prefix}"
|
|
- "--notify-parent"
|
|
- "--no-log-colors"
|
|
|
|
gpio:
|
|
drivers:
|
|
gpio2:
|
|
type: gpio
|
|
state_poll: 0.3
|
|
|
|
scheme:
|
|
host1: # any name like foo_bar_baz
|
|
pin: 1
|
|
mode: input
|
|
host2:
|
|
pin: 2
|
|
mode: input
|
|
host3:
|
|
pin: 3
|
|
mode: input
|
|
host4:
|
|
pin: 4
|
|
mode: input
|
|
change_host:
|
|
pin: 5
|
|
mode: output
|
|
switch: false
|
|
|
|
host1_pwr:
|
|
pin: 11
|
|
mode: input
|
|
host2_pwr:
|
|
pin: 12
|
|
mode: input
|
|
host3_pwr:
|
|
pin: 13
|
|
mode: input
|
|
host4_pwr:
|
|
pin: 14
|
|
mode: input
|
|
|
|
host1_pwr_btn:
|
|
pin: 21
|
|
mode: output
|
|
switch: false
|
|
host2_pwr_btn:
|
|
pin: 22
|
|
mode: output
|
|
switch: false
|
|
host3_pwr_btn:
|
|
pin: 23
|
|
mode: output
|
|
switch: false
|
|
host4_pwr_btn:
|
|
pin: 24
|
|
mode: output
|
|
switch: false
|
|
|
|
lamp:
|
|
pin: 50
|
|
mode: output
|
|
pulse:
|
|
delay: 0
|
|
|
|
view:
|
|
header:
|
|
title: Switch
|
|
table:
|
|
- ["#Multihost controller"]
|
|
- []
|
|
- ["", "#Current", "#Power"]
|
|
- ["#host1.localdomain:", host1, host1_pwr, "host1_pwr_btn,Pwr"]
|
|
- ["#host2.localdomain:", host2, host2_pwr, "host2_pwr_btn,Pwr"]
|
|
- ["#host3.localdomain:", host3, host3_pwr, "host3_pwr_btn,Pwr"]
|
|
- ["#host4.localdomain:", host4, host4_pwr, "host4_pwr_btn,Pwr"]
|
|
- []
|
|
- ["change_host,Change host"]
|
|
- []
|
|
- ["#Lamp in the rack", lamp]
|
|
|
|
vnc:
|
|
keymap: /usr/share/kvmd/keymaps/ru
|
|
|
|
auth:
|
|
vncauth:
|
|
enabled: true
|