chore: update config defaults and samples

This commit is contained in:
Bill Church 2021-05-20 12:46:19 -04:00
parent 039e1cfc62
commit dc3aa3f91f
2 changed files with 12 additions and 3 deletions

View file

@ -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,

View file

@ -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,