diff --git a/Dockerfile b/Dockerfile index 32babd0..5eea19d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,15 @@ FROM node:6.9.1-slim WORKDIR /usr/src/app # Copy package.json and package-lock.json (if available) -COPY package*.json ./ +COPY package*.json index.js ./ + +COPY app/ ./app/ + +COPY config.json.sample config.json # Install production dependencies RUN npm install --production -# Copy the current directory contents into the container -COPY . . - # Set environment variables ENV PORT=2222 ENV DEBUG= diff --git a/config.json.sample b/config.json.sample index 08b2c2d..25fd174 100644 --- a/config.json.sample +++ b/config.json.sample @@ -4,25 +4,23 @@ "port": 2222 }, "http": { - "origins": ["*:*"] + "origins": ["*.*"] }, "user": { "name": null, - "password": null + "password": null, + "privatekey": null }, "ssh": { "host": null, "port": 22, + "localAddress": null, + "localPort": null, "term": "xterm-color", "readyTimeout": 20000, "keepaliveInterval": 120000, - "keepaliveCountMax": 10 - }, - "terminal": { - "cursorBlink": true, - "scrollback": 10000, - "tabStopWidth": 8, - "bellStyle": "sound" + "keepaliveCountMax": 10, + "allowedSubnets": [] }, "header": { "text": null, @@ -30,7 +28,10 @@ }, "options": { "challengeButton": true, - "allowReauth": false + "autoLog": false, + "allowReauth": true, + "allowReconnect": true, + "allowReplay": true }, "algorithms": { "kex": [ @@ -60,11 +61,5 @@ "zlib@openssh.com", "zlib" ] - }, - "serverlog": { - "client": false, - "server": false - }, - "accesslog": false, - "verify": false + } }