Skip to content

Commit 1a1770b

Browse files
committed
feat: add example configuration files for direct and proxy connections
1 parent f876b88 commit 1a1770b

5 files changed

Lines changed: 62 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ profile.cov
2424
go.work
2525
go.work.sum
2626

27-
# Config files
28-
*.json
29-
3027
# env file
3128
.env
3229

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"host": "ssh-server.com",
3+
"port": 443,
4+
"auth": {
5+
"user": "ssh-username",
6+
"pass": "ssh-password"
7+
},
8+
"local": {
9+
"type": "http",
10+
"port": 8080
11+
},
12+
"payload": "GET / HTTP/1.1\r\nHost: bug-host.com\r\nUpgrade: websocket\r\n\r\n",
13+
"timeout": 30,
14+
"tls": {
15+
"sni": "bug-host.com"
16+
}
17+
}

examples/direct/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"host": "vps-server.com",
3+
"port": 80,
4+
"auth": {
5+
"user": "ssh-username",
6+
"pass": "ssh-passwrod"
7+
},
8+
"local": {
9+
"type": "http",
10+
"port": 8080
11+
},
12+
"payload": "GET / HTTP/1.1\r\nHost: bug-host.com\r\nUpgrade: websocket\r\n\r\n",
13+
"timeout": 30
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"host": "bug-host.com",
3+
"port": 443,
4+
"auth": {
5+
"user": "ssh-username",
6+
"pass": "ssh-password"
7+
},
8+
"local": {
9+
"type": "http",
10+
"port": 8080
11+
},
12+
"payload": "GET / HTTP/1.1\r\nHost: vps-server.com\r\nUpgrade: websocket\r\n\r\n",
13+
"timeout": 30,
14+
"tls": {
15+
"sni": "vps-server.com"
16+
}
17+
}

examples/proxy/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"host": "bug-host.com",
3+
"port": 80,
4+
"auth": {
5+
"user": "ssh-username",
6+
"pass": "ssh-possword"
7+
},
8+
"local": {
9+
"type": "http",
10+
"port": 2080
11+
},
12+
"payload": "GET / HTTP/1.1\r\nHost: vps-server.com\r\nUpgrade: websocket\r\n\r\n",
13+
"timeout": 30
14+
}

0 commit comments

Comments
 (0)