chore: update config defaults and samples
This commit is contained in:
parent
039e1cfc62
commit
dc3aa3f91f
2 changed files with 12 additions and 3 deletions
|
@ -35,7 +35,11 @@
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"name": "WebSSH2",
|
"name": "WebSSH2",
|
||||||
"secret": "mysecret"
|
"secret": "mysecret",
|
||||||
|
"resave": false,
|
||||||
|
"saveUninitialized": false,
|
||||||
|
"unset": "destroy"
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"challengeButton": true,
|
"challengeButton": true,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true, "allowTernary": true }],
|
// config.js
|
||||||
no-console: ["error", { allow: ["warn", "error"] }] */
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ let config = {
|
||||||
ssh: {
|
ssh: {
|
||||||
host: null,
|
host: null,
|
||||||
port: 22,
|
port: 22,
|
||||||
|
localAddress: null,
|
||||||
|
localPort: null,
|
||||||
term: 'xterm-color',
|
term: 'xterm-color',
|
||||||
readyTimeout: 20000,
|
readyTimeout: 20000,
|
||||||
keepaliveInterval: 120000,
|
keepaliveInterval: 120000,
|
||||||
|
@ -43,6 +45,9 @@ let config = {
|
||||||
session: {
|
session: {
|
||||||
name: 'WebSSH2',
|
name: 'WebSSH2',
|
||||||
secret: 'mysecret',
|
secret: 'mysecret',
|
||||||
|
resave: false,
|
||||||
|
saveUninitialized: false,
|
||||||
|
unset: 'destroy',
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
challengeButton: true,
|
challengeButton: true,
|
||||||
|
|
Loading…
Reference in a new issue