mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed /api/hid/print timeout with slow typing
This commit is contained in:
parent
45ff6cb7c7
commit
71617cc62a
@ -66,6 +66,7 @@ location /api/hid/print {
|
|||||||
proxy_pass http://kvmd;
|
proxy_pass http://kvmd;
|
||||||
include /etc/kvmd/nginx/loc-proxy.conf;
|
include /etc/kvmd/nginx/loc-proxy.conf;
|
||||||
include /etc/kvmd/nginx/loc-bigpost.conf;
|
include /etc/kvmd/nginx/loc-bigpost.conf;
|
||||||
|
proxy_read_timeout 7d;
|
||||||
auth_request off;
|
auth_request off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ export function Paste(__recorder) {
|
|||||||
} else if (http.status === 200) {
|
} else if (http.status === 200) {
|
||||||
__recorder.recordPrintEvent(text, keymap, slow);
|
__recorder.recordPrintEvent(text, keymap, slow);
|
||||||
}
|
}
|
||||||
}, text, "text/plain");
|
}, text, "text/plain", 7 * 24 * 3600);
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($("hid-pak-ask-switch").checked) {
|
if ($("hid-pak-ask-switch").checked) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user