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": {
"name": "WebSSH2",
"secret": "mysecret"
"secret": "mysecret",
"resave": false,
"saveUninitialized": false,
"unset": "destroy"
},
},
"options": {
"challengeButton": true,

View file

@ -1,5 +1,5 @@
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true, "allowTernary": true }],
no-console: ["error", { allow: ["warn", "error"] }] */
// config.js
const fs = require('fs');
const path = require('path');
@ -24,6 +24,8 @@ let config = {
ssh: {
host: null,
port: 22,
localAddress: null,
localPort: null,
term: 'xterm-color',
readyTimeout: 20000,
keepaliveInterval: 120000,
@ -43,6 +45,9 @@ let config = {
session: {
name: 'WebSSH2',
secret: 'mysecret',
resave: false,
saveUninitialized: false,
unset: 'destroy',
},
options: {
challengeButton: true,