From 71617cc62a01d0058a9a5bd27930a3acefead9f6 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 4 Apr 2025 14:37:53 +0300 Subject: [PATCH] fixed /api/hid/print timeout with slow typing --- configs/nginx/kvmd.ctx-server.conf | 1 + web/share/js/kvm/paste.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/nginx/kvmd.ctx-server.conf b/configs/nginx/kvmd.ctx-server.conf index ba02421d..cd375218 100644 --- a/configs/nginx/kvmd.ctx-server.conf +++ b/configs/nginx/kvmd.ctx-server.conf @@ -66,6 +66,7 @@ location /api/hid/print { proxy_pass http://kvmd; include /etc/kvmd/nginx/loc-proxy.conf; include /etc/kvmd/nginx/loc-bigpost.conf; + proxy_read_timeout 7d; auth_request off; } diff --git a/web/share/js/kvm/paste.js b/web/share/js/kvm/paste.js index 2714c158..b34d805b 100644 --- a/web/share/js/kvm/paste.js +++ b/web/share/js/kvm/paste.js @@ -84,7 +84,7 @@ export function Paste(__recorder) { } else if (http.status === 200) { __recorder.recordPrintEvent(text, keymap, slow); } - }, text, "text/plain"); + }, text, "text/plain", 7 * 24 * 3600); }; if ($("hid-pak-ask-switch").checked) {