Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lzjluzijie committed Jul 15, 2018
1 parent 230ae8d commit 12cdca1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
20 changes: 8 additions & 12 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,30 @@ The disadvantage is that I have just started development, there is no GUI client
#### Server
```
./websocks cert
./websocks config server -l :2333 -p /password --reverse-proxy https://www.centos.org/ --tls
./websocks server
./websocks server -l :443 -p websocks --reverse-proxy http://mirror.centos.org --tls
```

#### Local
#### Client
```
./websocks config client -l :1080 -s wss://server.com:2333/password -n www.centos.com --insecure
./websocks client
./websocks client -l :1080 -s wss://websocks.org:443/websocks -n mirror.centos.com --insecure
```

### Caddy TLS

#### Server
```
./websocks config server -l :2333 -p /password
./websocks server
./websocks server -l :2333 -p /websocks
```

#### Local
#### Client
```
./websocks config client -l :1080 -s wss://server.com/password
./websocks client
./websocks client -l :1080 -s wss://websocks.org/websocks
```

#### Caddyfile
```
https://server.com {
proxy /password localhost:2333 {
https://websocks.org {
proxy /websocks localhost:2333 {
websocket
}
}
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,31 @@
#### 服务端
```
./websocks cert
./websocks config server -l :2333 -p /password --reverse-proxy https://www.centos.org/ --tls
./websocks server
./websocks server -l :443 -p websocks --reverse-proxy http://mirror.centos.org --tls
```

#### 客户端
```
./websocks config client -l :1080 -s wss://server.com:2333/password -n www.centos.com --insecure
./websocks client
./websocks client -l :1080 -s wss://websocks.org:443/websocks -n mirror.centos.com --insecure
```


### Caddy TLS

#### 服务端
```
./websocks config server -l :2333 -p /password
./websocks server
./websocks server -l :2333 -p /websocks
```

#### 客户端
```
./websocks config client -l :1080 -s wss://server.com/password
./websocks client
./websocks client -l :1080 -s wss://websocks.org/websocks
```

#### Caddyfile
```
https://server.com {
proxy /password localhost:2333 {
https://websocks.org {
proxy /websocks localhost:2333 {
websocket
}
}
Expand Down

0 comments on commit 12cdca1

Please sign in to comment.