From 17c6b9e31f9910c30ac660476e7bed8103f3935e Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 16 Nov 2018 06:54:27 +0300 Subject: meta, refactoring --- configs/kvmd/kvmd.v1-hdmi.yaml | 10 +++++++--- configs/kvmd/kvmd.v1-vga.yaml | 10 +++++++--- configs/kvmd/meta.yaml | 9 +++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 configs/kvmd/meta.yaml (limited to 'configs') diff --git a/configs/kvmd/kvmd.v1-hdmi.yaml b/configs/kvmd/kvmd.v1-hdmi.yaml index 1ac41a12..43b3278e 100644 --- a/configs/kvmd/kvmd.v1-hdmi.yaml +++ b/configs/kvmd/kvmd.v1-hdmi.yaml @@ -1,9 +1,15 @@ +# Don't touch this file otherwise your device may stop working. +# You can find a workable configuration in /usr/share/kvmd/configs/kvmd. + kvmd: server: host: 127.0.0.1 port: 8081 heartbeat: 3.0 + info: + meta: /etc/kvmd/meta.yaml + log: services: - kvmd.service @@ -26,7 +32,6 @@ kvmd: click_delay: 0.1 long_click_delay: 5.5 - state_poll: 0.1 msd: @@ -49,6 +54,7 @@ kvmd: init_delay: 1.0 init_restart_after: 0.0 shutdown_delay: 10.0 + state_poll: 1.0 quality: 80 desired_fps: 0 @@ -71,6 +77,4 @@ kvmd: - "--port={port}" - "--drop-same-frames=30" - state_poll: 1.0 - logging: !include logging.yaml diff --git a/configs/kvmd/kvmd.v1-vga.yaml b/configs/kvmd/kvmd.v1-vga.yaml index 3065c262..5993176f 100644 --- a/configs/kvmd/kvmd.v1-vga.yaml +++ b/configs/kvmd/kvmd.v1-vga.yaml @@ -1,9 +1,15 @@ +# Don't touch this file otherwise your device may stop working. +# You can find a workable configuration in /usr/share/kvmd/configs/kvmd. + kvmd: server: host: 127.0.0.1 port: 8081 heartbeat: 3.0 + info: + meta: /etc/kvmd/meta.yaml + log: services: - kvmd.service @@ -26,7 +32,6 @@ kvmd: click_delay: 0.1 long_click_delay: 5.5 - state_poll: 0.1 msd: @@ -49,6 +54,7 @@ kvmd: init_delay: 1.0 init_restart_after: 1.0 shutdown_delay: 10.0 + state_poll: 1.0 quality: 80 desired_fps: 0 @@ -72,6 +78,4 @@ kvmd: - "--host={host}" - "--port={port}" - state_poll: 1.0 - logging: !include logging.yaml diff --git a/configs/kvmd/meta.yaml b/configs/kvmd/meta.yaml new file mode 100644 index 00000000..65524997 --- /dev/null +++ b/configs/kvmd/meta.yaml @@ -0,0 +1,9 @@ +# You can write down any information and it will be available +# at the address /kvmd/info (if you use default nginx config). +# If server.host (str) will be defained then this value +# will be displayed in the web interface. + +server: + host: localhost + +kvm: {} -- cgit v1.2.3