refactor: remove unused terminal configuration options
refactor: remove unused serverlog configuration options refactor: remove unused accesslog configuration options refactor: remove unused verify configuration options
This commit is contained in:
parent
252e4f16d6
commit
60d2528437
1 changed files with 4 additions and 50 deletions
|
@ -25,11 +25,6 @@ const crypto = require("crypto")
|
||||||
* @property {number} ssh.readyTimeout - Ready timeout
|
* @property {number} ssh.readyTimeout - Ready timeout
|
||||||
* @property {number} ssh.keepaliveInterval - Keepalive interval
|
* @property {number} ssh.keepaliveInterval - Keepalive interval
|
||||||
* @property {number} ssh.keepaliveCountMax - Max keepalive count
|
* @property {number} ssh.keepaliveCountMax - Max keepalive count
|
||||||
* @property {Object} terminal - Terminal configuration
|
|
||||||
* @property {boolean} terminal.cursorBlink - Whether cursor blinks
|
|
||||||
* @property {number} terminal.scrollback - Scrollback limit
|
|
||||||
* @property {number} terminal.tabStopWidth - Tab stop width
|
|
||||||
* @property {string} terminal.bellStyle - Bell style
|
|
||||||
* @property {Object} header - Header configuration
|
* @property {Object} header - Header configuration
|
||||||
* @property {string|null} header.text - Header text
|
* @property {string|null} header.text - Header text
|
||||||
* @property {string} header.background - Header background color
|
* @property {string} header.background - Header background color
|
||||||
|
@ -44,11 +39,6 @@ const crypto = require("crypto")
|
||||||
* @property {string[]} algorithms.cipher - Cipher algorithms
|
* @property {string[]} algorithms.cipher - Cipher algorithms
|
||||||
* @property {string[]} algorithms.hmac - HMAC algorithms
|
* @property {string[]} algorithms.hmac - HMAC algorithms
|
||||||
* @property {string[]} algorithms.compress - Compression algorithms
|
* @property {string[]} algorithms.compress - Compression algorithms
|
||||||
* @property {Object} serverlog - Server log configuration
|
|
||||||
* @property {boolean} serverlog.client - Client logging enabled
|
|
||||||
* @property {boolean} serverlog.server - Server logging enabled
|
|
||||||
* @property {boolean} accesslog - Access logging enabled
|
|
||||||
* @property {boolean} verify - Verification enabled
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,17 +60,11 @@ const defaultConfig = {
|
||||||
ssh: {
|
ssh: {
|
||||||
host: null,
|
host: null,
|
||||||
port: 22,
|
port: 22,
|
||||||
term: "vt100",
|
term: "xterm-color",
|
||||||
readyTimeout: 20000,
|
readyTimeout: 20000,
|
||||||
keepaliveInterval: 120000,
|
keepaliveInterval: 120000,
|
||||||
keepaliveCountMax: 10
|
keepaliveCountMax: 10
|
||||||
},
|
},
|
||||||
terminal: {
|
|
||||||
cursorBlink: true,
|
|
||||||
scrollback: 10000,
|
|
||||||
tabStopWidth: 8,
|
|
||||||
bellStyle: "sound"
|
|
||||||
},
|
|
||||||
header: {
|
header: {
|
||||||
text: null,
|
text: null,
|
||||||
background: "green"
|
background: "green"
|
||||||
|
@ -116,13 +100,7 @@ const defaultConfig = {
|
||||||
session: {
|
session: {
|
||||||
secret: generateSecureSecret(),
|
secret: generateSecureSecret(),
|
||||||
name: "webssh2.sid"
|
name: "webssh2.sid"
|
||||||
},
|
}
|
||||||
serverlog: {
|
|
||||||
client: false,
|
|
||||||
server: false
|
|
||||||
},
|
|
||||||
accesslog: false,
|
|
||||||
verify: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -176,16 +154,6 @@ const configSchema = {
|
||||||
"keepaliveCountMax"
|
"keepaliveCountMax"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
terminal: {
|
|
||||||
type: "object",
|
|
||||||
properties: {
|
|
||||||
cursorBlink: { type: "boolean" },
|
|
||||||
scrollback: { type: "integer" },
|
|
||||||
tabStopWidth: { type: "integer" },
|
|
||||||
bellStyle: { type: "string" }
|
|
||||||
},
|
|
||||||
required: ["cursorBlink", "scrollback", "tabStopWidth", "bellStyle"]
|
|
||||||
},
|
|
||||||
header: {
|
header: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
|
@ -234,30 +202,16 @@ const configSchema = {
|
||||||
name: { type: "string" }
|
name: { type: "string" }
|
||||||
},
|
},
|
||||||
required: ["secret", "name"]
|
required: ["secret", "name"]
|
||||||
},
|
}
|
||||||
serverlog: {
|
|
||||||
type: "object",
|
|
||||||
properties: {
|
|
||||||
client: { type: "boolean" },
|
|
||||||
server: { type: "boolean" }
|
|
||||||
},
|
|
||||||
required: ["client", "server"]
|
|
||||||
},
|
|
||||||
accesslog: { type: "boolean" },
|
|
||||||
verify: { type: "boolean" }
|
|
||||||
},
|
},
|
||||||
required: [
|
required: [
|
||||||
"listen",
|
"listen",
|
||||||
"http",
|
"http",
|
||||||
"user",
|
"user",
|
||||||
"ssh",
|
"ssh",
|
||||||
"terminal",
|
|
||||||
"header",
|
"header",
|
||||||
"options",
|
"options",
|
||||||
"algorithms",
|
"algorithms"
|
||||||
"serverlog",
|
|
||||||
"accesslog",
|
|
||||||
"verify"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue