Skip to content

Commit

Permalink
Removed unused var/arg
Browse files Browse the repository at this point in the history
  • Loading branch information
freaker2k7 committed Jul 24, 2019
1 parent 31d9106 commit 95d9b9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ Now, you can do "remote" docker operation using simple HTTP requests:
#### Environment
You can set the following environment variables to configure DockerServer:

1. `DS_CONTEXT` - The base context directory (default: $HOME)
2. `DS_PORT` - The port on which the DockerServer is running (default: 1717)
3. `DS_TOKEN` - The secret token for the authorization (default: xxxxxxxxxxxxxxxxxxxxxxxx)
1. `DS_PORT` - The port on which the DockerServer is running (default: 1717)
2. `DS_TOKEN` - The secret token for the authorization (default: xxxxxxxxxxxxxxxxxxxxxxxx)

#### POST/PUT Data
When sending the PUT request, the following parameters are supported:
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var express = require('express');
var throttle = require('express-rate-limit');
var os = require('os');

var docker = require('./lib/docker.js');

Expand All @@ -12,7 +11,6 @@ var low_burst = throttle({ 'max': 60, 'windowMs': 60000 });
var mid_burst = throttle({ 'max': 180, 'windowMs': 60000 });
var high_burst = throttle({ 'max': 300, 'windowMs': 60000 });

var context = process.env.DS_CONTEXT || os.homedir();
var port = parseInt(process.env.DS_PORT) || 1717;
var token = process.env.DS_TOKEN || 'xxxxxxxxxxxxxxxxxxxxxxxx';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "docker-server",
"author": "Evgeny Kolyakov <thenetfreaker@gmail.com>",
"description": "DockerServer - Super lightweight & simple REST server for running docker containers on a remote machine.",
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://dockerserver.io",
"repository": "freaker2k7/dockerserver",
"license": "Apache-2.0",
Expand Down

0 comments on commit 95d9b9c

Please sign in to comment.