add Dockerfile
This commit is contained in:
parent
be50151108
commit
398df7f4c4
2 changed files with 27 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM node:8.6
|
||||||
|
|
||||||
|
WORKDIR /usr/src
|
||||||
|
COPY . /usr/src
|
||||||
|
RUN npm install --production
|
||||||
|
EXPOSE 2222
|
||||||
|
CMD npm start
|
20
README.md
20
README.md
|
@ -21,6 +21,26 @@ http://localhost:2222/ssh/host/127.0.0.1
|
||||||
|
|
||||||
You will be prompted for credentials to use on the SSH server via HTTP Basic authentcaiton. This is to permit usage with some SSO systems that can replay credentials over HTTP basic.
|
You will be prompted for credentials to use on the SSH server via HTTP Basic authentcaiton. This is to permit usage with some SSO systems that can replay credentials over HTTP basic.
|
||||||
|
|
||||||
|
# Docker Instructions
|
||||||
|
|
||||||
|
Modify config.json
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"listen": {
|
||||||
|
"ip": "0.0.0.0",
|
||||||
|
"port": 2222
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Build and run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t webssh2 .
|
||||||
|
docker run --name webssh2 -d -p 2222:2222 webssh2
|
||||||
|
```
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
|
|
||||||
## GET request vars
|
## GET request vars
|
||||||
|
|
Loading…
Reference in a new issue