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:
@@ -5,8 +5,9 @@ logging: !include logging.yaml
|
||||
|
||||
kvmd:
|
||||
server:
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
unix: /run/kvmd.sock
|
||||
unix_rm: true
|
||||
unix_mode: 0660
|
||||
|
||||
auth: !include auth.yaml
|
||||
|
||||
@@ -26,8 +27,7 @@ kvmd:
|
||||
device: /dev/kvmd-msd
|
||||
|
||||
streamer:
|
||||
host: 127.0.0.1
|
||||
port: 8082
|
||||
unix: /run/ustreamer.sock
|
||||
cmd:
|
||||
- "/usr/bin/ustreamer"
|
||||
- "--device=/dev/kvmd-video"
|
||||
@@ -38,11 +38,11 @@ kvmd:
|
||||
- "--workers=3"
|
||||
- "--quality={quality}"
|
||||
- "--desired-fps={desired_fps}"
|
||||
- "--host={host}"
|
||||
- "--port={port}"
|
||||
- "--drop-same-frames=30"
|
||||
- "--unix={unix}"
|
||||
- "--unix-rm"
|
||||
- "--unix-mode=0660"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
unix: /run/kvmd.sock
|
||||
|
||||
@@ -5,8 +5,9 @@ logging: !include logging.yaml
|
||||
|
||||
kvmd:
|
||||
server:
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
unix: /run/kvmd.sock
|
||||
unix_rm: true
|
||||
unix_mode: 0660
|
||||
|
||||
auth: !include auth.yaml
|
||||
|
||||
@@ -29,8 +30,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"
|
||||
@@ -43,10 +43,10 @@ kvmd:
|
||||
- "--height=576"
|
||||
- "--fake-width=800"
|
||||
- "--fake-height=600"
|
||||
- "--host={host}"
|
||||
- "--port={port}"
|
||||
- "--unix={unix}"
|
||||
- "--unix-rm"
|
||||
- "--unix-mode=0660"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
listen: 127.0.0.1
|
||||
port: 8081
|
||||
unix: /run/kvmd.sock
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
user http;
|
||||
user kvmd-nginx;
|
||||
worker_processes 4;
|
||||
|
||||
# error_log /tmp/kvmd-nginx.error.log;
|
||||
@@ -35,11 +35,11 @@ http {
|
||||
uwsgi_temp_path /tmp/kvmd-nginx.uwsgi_temp;
|
||||
|
||||
upstream kvmd {
|
||||
server 127.0.0.1:8081 fail_timeout=0s max_fails=0;
|
||||
server unix:/run/kvmd.sock fail_timeout=0s max_fails=0;
|
||||
}
|
||||
|
||||
upstream ustreamer {
|
||||
server 127.0.0.1:8082 fail_timeout=0s max_fails=0;
|
||||
server unix:/run/ustreamer.sock fail_timeout=0s max_fails=0;
|
||||
}
|
||||
|
||||
include /usr/share/kvmd/extras/*/nginx.ctx-http.conf;
|
||||
|
||||
Reference in New Issue
Block a user