meta, refactoring

This commit is contained in:
Devaev Maxim
2018-11-16 06:54:27 +03:00
parent 4294eed14e
commit 17c6b9e31f
12 changed files with 97 additions and 57 deletions

View File

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

View File

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

9
configs/kvmd/meta.yaml Normal file
View File

@@ -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: {}