Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vnxme committed Feb 15, 2024
1 parent 3922f3c commit 9103aa5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:${GOLANG_VERSION}-alpine${A

RUN apk add --update --no-cache git

RUN git clone --depth 1 --branch ${SWGPGO_BRANCH:-main} https://github.com/database64128/swgp-go /app
RUN git clone --depth 1 --branch v1.5.0 https://github.com/database64128/swgp-go /app

WORKDIR /app/cmd/swgp-go

Expand Down
4 changes: 4 additions & 0 deletions sample/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
"clients": [
{
"name": "client",
"wgListenNetwork": "",
"wgListen": ":20222",
"wgFwmark": 0,
"wgTrafficClass": 0,
"proxyEndpointNetwork": "",
"proxyEndpoint": "[2001:db8::2]:20220",
"proxyConnListenNetwork": "",
"proxyConnListenAddress": "",
"proxyMode": "zero-overhead",
"proxyPSK": "sAe5RvzLJ3Q0Ll88QRM1N01dYk83Q4y0rXMP1i4rDmI=",
"proxyFwmark": 0,
Expand Down
4 changes: 4 additions & 0 deletions sample/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"servers": [
{
"name": "server",
"proxyListenNetwork": "",
"proxyListen": ":20220",
"proxyMode": "zero-overhead",
"proxyPSK": "sAe5RvzLJ3Q0Ll88QRM1N01dYk83Q4y0rXMP1i4rDmI=",
"proxyFwmark": 0,
"proxyTrafficClass": 0,
"wgEndpointNetwork": "",
"wgEndpoint": "[2001:db8::1]:20221",
"wgConnListenNetwork": "",
"wgConnListenAddress": "",
"wgFwmark": 0,
"wgTrafficClass": 0,
"mtu": 1500,
Expand Down

0 comments on commit 9103aa5

Please sign in to comment.