Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
test.json
lib/
.idea
*.iml
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:15
RUN npm install -g http-proxy-to-socks
ENV SOCKS_HOST=localhost
ENV SOCKS_PORT=1080
ENV HTTP_PROXY_PORT=8080
CMD ["sh", "-c", "hpts --socks ${SOCKS_HOST}:${SOCKS_PORT} --host 0.0.0.0 --port ${HTTP_PROXY_PORT} --level info"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ You can specify a `json` config file with `-c`:
}
```

### Quick start with Docker
```bash
docker run -itd --name http-proxy-to-socks \
-e SOCKS_HOST=socks.proxy.host \
-e SOCKS_PORT=1080 \
-e HTTP_PROXY_PORT=8080 \
-p 8080:8080 \
peez/http-proxy-to-socks
```
## CONTRIBUTE

Please add more tests for corresponding features when you send a PR:
Expand Down