From dc3aa3f91f99e9eb1d20e82c92a5a8db703c8344 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Thu, 20 May 2021 12:46:19 -0400 Subject: [PATCH] chore: update config defaults and samples --- app/config.json.sample | 6 +++++- app/server/config.js | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/config.json.sample b/app/config.json.sample index b30f569..753060c 100644 --- a/app/config.json.sample +++ b/app/config.json.sample @@ -35,7 +35,11 @@ }, "session": { "name": "WebSSH2", - "secret": "mysecret" + "secret": "mysecret", + "resave": false, + "saveUninitialized": false, + "unset": "destroy" + }, }, "options": { "challengeButton": true, diff --git a/app/server/config.js b/app/server/config.js index 52d08b4..3862502 100644 --- a/app/server/config.js +++ b/app/server/config.js @@ -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,