Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for config.json not being read. #134

Closed
wants to merge 1 commit into from

Conversation

nfvs
Copy link

@nfvs nfvs commented Jun 11, 2019

Without this change config.json will not be loaded:

❯ docker build -t webssh2 .
...
❯ docker run -it -p 2222:2222 webssh2:latest
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]

> [email protected] start /usr/src
> node index.js

WebSSH2 service reading config from: /usr/src/config.json


ERROR: Missing config.json for webssh. Current config: {"listen":{"ip":"0.0.0.0","port":2222},"user":{"name":null,"password":null},"ssh":{"host":null,"port":22,"term":"xterm-color","readyTimeout":20000,"keepaliveInterval":120000,"keepaliveCountMax":10},"terminal":{"cursorBlink":true,"scrollback":10000,"tabStopWidth":8,"bellStyle":"sound"},"header":{"text":null,"background":"green"},"session":{"name":"WebSSH2","secret":"mysecret"},"options":{"challengeButton":true,"allowreauth":true},"algorithms":{"kex":["ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521","diffie-hellman-group-exchange-sha256","diffie-hellman-group14-sha1"],"cipher":["aes128-ctr","aes192-ctr","aes256-ctr","aes128-gcm","[email protected]","aes256-gcm","[email protected]","aes256-cbc"],"hmac":["hmac-sha2-256","hmac-sha2-512","hmac-sha1"],"compress":["none","[email protected]","zlib"]},"serverlog":{"client":false,"server":false},"accesslog":false,"verify":false}

  See config.json.sample for details


ERROR:

  ReferenceError: fs is not defined
WebSSH2 service listening on 0.0.0.0:2222

@billchurch
Copy link
Owner

thanks, I fixed this in (95eb700) but forgot to close this out. See #135

@billchurch billchurch closed this Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants