mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
log interface
This commit is contained in:
@@ -4,6 +4,11 @@ kvmd:
|
||||
port: 8081
|
||||
heartbeat: 3.0
|
||||
|
||||
log:
|
||||
services:
|
||||
- kvmd.service
|
||||
- kvmd-tc358743.service
|
||||
|
||||
hid:
|
||||
pinout:
|
||||
reset: 4
|
||||
@@ -66,8 +71,7 @@ logging:
|
||||
console:
|
||||
(): logging.Formatter
|
||||
style: "{"
|
||||
datefmt: "%H:%M:%S"
|
||||
format: "[{asctime}] {name:20.20} {levelname:>7} --- {message}"
|
||||
format: "{name:20.20} {levelname:>7} --- {message}"
|
||||
|
||||
handlers:
|
||||
console:
|
||||
|
||||
@@ -4,6 +4,11 @@ kvmd:
|
||||
port: 8081
|
||||
heartbeat: 3.0
|
||||
|
||||
log:
|
||||
services:
|
||||
- kvmd.service
|
||||
- kvmd-tc358743.service
|
||||
|
||||
hid:
|
||||
pinout:
|
||||
reset: 4
|
||||
@@ -69,8 +74,7 @@ logging:
|
||||
console:
|
||||
(): logging.Formatter
|
||||
style: "{"
|
||||
datefmt: "%H:%M:%S"
|
||||
format: "[{asctime}] {name:20.20} {levelname:>7} --- {message}"
|
||||
format: "{name:20.20} {levelname:>7} --- {message}"
|
||||
|
||||
handlers:
|
||||
console:
|
||||
|
||||
@@ -109,6 +109,16 @@ http {
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
location /kvmd/log {
|
||||
rewrite /kvmd/log /log break;
|
||||
proxy_pass http://kvmd;
|
||||
include /etc/nginx/proxy-params.conf;
|
||||
proxy_read_timeout 7d;
|
||||
postpone_output 0;
|
||||
proxy_buffering off;
|
||||
proxy_ignore_headers X-Accel-Buffering;
|
||||
}
|
||||
|
||||
location /kvmd {
|
||||
rewrite /kvmd/?(.*) /$1 break;
|
||||
proxy_pass http://kvmd;
|
||||
|
||||
Reference in New Issue
Block a user