Skip to content

Commit

Permalink
Add sample configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
vnxme committed Aug 12, 2023
1 parent b7a3c15 commit f7733f9
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sample/client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"clients": [
{
"name": "client",
"wgListen": ":20222",
"wgFwmark": 0,
"wgTrafficClass": 0,
"proxyEndpoint": "[2001:db8::2]:20220",
"proxyMode": "zero-overhead",
"proxyPSK": "sAe5RvzLJ3Q0Ll88QRM1N01dYk83Q4y0rXMP1i4rDmI=",
"proxyFwmark": 0,
"proxyTrafficClass": 0,
"mtu": 1500,
"batchMode": "",
"relayBatchSize": 0,
"mainRecvBatchSize": 0,
"sendChannelCapacity": 0
}
]
}
9 changes: 9 additions & 0 deletions sample/client.obfs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Interface]
Address = 192.0.2.2/24
PrivateKey = EMzBeCTUpM2EwFz19ArhiXYf1vjS1T/e5f9LF5LFRGY=

[Peer]
PublicKey = Bj+VYMZ3Xt1ROgDuJ9fOm88Iw6s23hq+tyrsLrEOmGA=
PresharedKey = OnWohs7BrG+1Os1zBRvJXZC9aU76JDTS5Wzpkcfhn1o=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = [2001:db8::3]:20222
9 changes: 9 additions & 0 deletions sample/client.pure.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Interface]
Address = 192.0.2.2/24
PrivateKey = EMzBeCTUpM2EwFz19ArhiXYf1vjS1T/e5f9LF5LFRGY=

[Peer]
PublicKey = Bj+VYMZ3Xt1ROgDuJ9fOm88Iw6s23hq+tyrsLrEOmGA=
PresharedKey = OnWohs7BrG+1Os1zBRvJXZC9aU76JDTS5Wzpkcfhn1o=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = [2001:db8::1]:20221
16 changes: 16 additions & 0 deletions sample/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.8"
services:
swgp-server:
container_name: swgp-server
image: vnxme/swgp-go:latest
network: host
restart: unless-stopped
volumes:
- ./server.json:/etc/swgp-go/config.json:ro
swgp-client:
container_name: swgp-client
image: vnxme/swgp-go:latest
network: host
restart: unless-stopped
volumes:
- ./client.json:/etc/swgp-go/config.json:ro
9 changes: 9 additions & 0 deletions sample/server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Interface]
Address = 192.0.2.1/24
ListenPort = 20221
PrivateKey = 2O0/Uc8q2MrcBMUbYClu3MkgZOCqqeBffJwj17dzvU4=

[Peer]
PublicKey = UcT0x33H7aTXKMtZLi+S5LDgDio0jQTeTCbpIlf2ACI=
PresharedKey = OnWohs7BrG+1Os1zBRvJXZC9aU76JDTS5Wzpkcfhn1o=
AllowedIPs = 192.0.2.2/32
20 changes: 20 additions & 0 deletions sample/server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"servers": [
{
"name": "server",
"proxyListen": ":20220",
"proxyMode": "zero-overhead",
"proxyPSK": "sAe5RvzLJ3Q0Ll88QRM1N01dYk83Q4y0rXMP1i4rDmI=",
"proxyFwmark": 0,
"proxyTrafficClass": 0,
"wgEndpoint": "[2001:db8::1]:20221",
"wgFwmark": 0,
"wgTrafficClass": 0,
"mtu": 1500,
"batchMode": "",
"relayBatchSize": 0,
"mainRecvBatchSize": 0,
"sendChannelCapacity": 0
}
]
}

0 comments on commit f7733f9

Please sign in to comment.