mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
using unix sockets
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
0
testenv/run/.gitignore
vendored
Normal file
Reference in New Issue
Block a user