using unix sockets

This commit is contained in:
Devaev Maxim
2019-05-09 20:52:15 +03:00
parent a972e35f7a
commit def5346b4b
9 changed files with 43 additions and 34 deletions

View File

@@ -27,6 +27,7 @@ RUN pkg-install \
python-systemd \
python-dbus \
python-mako \
libevent-patched \
nginx-mainline \
ustreamer \
socat \
@@ -36,6 +37,7 @@ RUN pkg-install \
COPY testenv/requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN useradd -r -c "Pi-KVM Nginx Server" -s /sbin/nologin kvmd-nginx
RUN mkdir -p /etc/kvmd/nginx
CMD /bin/bash

View File

@@ -1,7 +1,8 @@
kvmd:
server:
host: 0.0.0.0
port: 8081
unix: /run/kvmd.sock
unix_rm: true
unix_mode: 0666
auth: !include auth.yaml
@@ -25,8 +26,7 @@ kvmd:
cap_pin: 17
conv_pin: 18
init_restart_after: 1
host: 127.0.0.1
port: 8082
unix: /run/ustreamer.sock
cmd:
- "/usr/bin/ustreamer"
- "--device=/dev/kvmd-video"
@@ -34,12 +34,12 @@ kvmd:
- "--desired-fps={desired_fps}"
- "--width=800"
- "--height=600"
- "--host=0.0.0.0"
- "--port={port}"
- "--unix={unix}"
- "--unix-rm"
- "--unix-mode=0666"
ipmi:
kvmd:
host: kvmd
port: 8081
unix: /run/kvmd.sock
logging: !include logging.yaml

0
testenv/run/.gitignore vendored Normal file
View File