diff options
author | Devaev Maxim <[email protected]> | 2018-10-28 06:51:51 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-10-28 07:03:14 +0300 |
commit | ab342111d0c88e13e0d0d4a79c1e14150a7d4ef3 (patch) | |
tree | 022ec24cc8b7fde70fba8833ef8a35fcad228e48 /configs | |
parent | 1f54776ce0a1429a7ddcc4ac8b09054c48d67953 (diff) |
log interface
Diffstat (limited to 'configs')
-rw-r--r-- | configs/kvmd/v1-hdmi.yaml | 8 | ||||
-rw-r--r-- | configs/kvmd/v1-vga.yaml | 8 | ||||
-rw-r--r-- | configs/nginx/nginx.conf | 10 |
3 files changed, 22 insertions, 4 deletions
diff --git a/configs/kvmd/v1-hdmi.yaml b/configs/kvmd/v1-hdmi.yaml index 3ab7031d..2ca573e1 100644 --- a/configs/kvmd/v1-hdmi.yaml +++ b/configs/kvmd/v1-hdmi.yaml @@ -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: diff --git a/configs/kvmd/v1-vga.yaml b/configs/kvmd/v1-vga.yaml index 36e20fbf..48b8e511 100644 --- a/configs/kvmd/v1-vga.yaml +++ b/configs/kvmd/v1-vga.yaml @@ -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: diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf index a06ced1b..e5fd03c4 100644 --- a/configs/nginx/nginx.conf +++ b/configs/nginx/nginx.conf @@ -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; |