Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ztj1993 committed Jan 30, 2023
1 parent 79eacac commit 79c1838
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ go run .\url-proxy.go -addr :8888

### Build
```
docker run --rm -v "$PWD":/srv -w /srv golang:1.18 ./build.sh
docker run --rm -v "$PWD":/srv -w /srv golang:1.18 ./build.sh dev
```

## Docker
Expand All @@ -26,5 +26,22 @@ docker build -t ztj1993/url-proxy:latest .

### Run
```
docker run -d --restart=always -p 8888:8888 ztj1993/url-proxy:latest
docker run -d --name=uproxy --restart=always -p 8888:8888 ztj1993/url-proxy:latest
```

## Forward

Support forwarding to other url-proxy programs.

支持转发到其它的 url-proxy 程序。

forwarding.conf
```
github.com http://192.168.100.1:8888
google.com http://192.168.99.1:8888
```

run:
```
go run .\url-proxy.go -forward ./forwarding.conf
```

0 comments on commit 79c1838

Please sign in to comment.