Skip to content

Commit

Permalink
update hacking guide
Browse files Browse the repository at this point in the history
Signed-off-by: Uncle Jack <[email protected]>
  • Loading branch information
unclejacki committed Jul 2, 2024
1 parent e5a672b commit 3c77e05
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 40 deletions.
2 changes: 2 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ Run the local server and start hacking:
```sh
$ make dev
```

**NOTE**: If your changes modify the configuration file, ensure you run `make schema` before submitting your patch.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ and visit https://{YOUR-WORKERS-SUBDOMAIN}.workers.dev/link to get the config li
$ make deploy
```

4. Modify the [xray config](./config/vmess.json) and run:
4. Modify the [xray config](./config/xray.json) and run:
```sh
$ xray -c ./config/xray.json
```

## Contributing
Contributions are very welcome. Before contributing, make sure to look at the
contribution documentation in [HACKING.md](./HACKING.md).
39 changes: 0 additions & 39 deletions config/vmess.json

This file was deleted.

80 changes: 80 additions & 0 deletions config/xray.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"log": {
"loglevel": "info"
},
"inbounds": [
{
"port": 1085,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"tag": "vmess",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "YOUR_CF_WORKER_SUBDOMAIN.workers.dev",
"port": 443,
"users": [
{
"id": "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8",
"security": "zero"
}
]
}
]
},
"streamSettings": {
"security": "tls",
"network": "ws",
"wsSettings": {
"path": "/vmess"
}
}
},
{
"tag": "vless",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "YOUR_CF_WORKER_SUBDOMAIN.workers.dev",
"port": 443,
"users": [
{
"id": "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8",
"level": 0,
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"security": "tls",
"network": "ws",
"wsSettings": {
"path": "/vless"
}
}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"185.13.228.162"
],
"outboundTag": "vless"
}
]
}
}

0 comments on commit 3c77e05

Please sign in to comment.