Some tweaks

This commit is contained in:
2024-12-21 22:14:24 -05:00
parent 2234f3df40
commit c964c67649
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html> <html>
<head> <head>
<title>SSH Terminal</title> <title>SSH Terminal</title>
@@ -18,7 +19,7 @@
var socket = io(); //.connect(); var socket = io(); //.connect();
socket.on("connect", function () { socket.on("connect", function () {
term.write("\r\n*** Connected to backend ***\r\n"); term.write("\r\n*** Connected ***\r\n");
}); });
// Browser -> Backend // Browser -> Backend
@@ -32,7 +33,7 @@
}); });
socket.on("disconnect", function () { socket.on("disconnect", function () {
term.write("\r\n*** Disconnected from backend ***\r\n"); term.write("\r\n*** Disconnected ***\r\n");
}); });
}, },
false false

View File

@@ -19,6 +19,7 @@ try {
var sshConfig = { var sshConfig = {
host: config.ssh?.host ?? "host.docker.internal", host: config.ssh?.host ?? "host.docker.internal",
port: config.ssh?.port ?? 22, port: config.ssh?.port ?? 22,
term: config.ssh?.term ?? "xterm",
username: config.ssh?.username, username: config.ssh?.username,
}; };