Skip to content

Commit b7e037d

Browse files
committed
init cf worker code
1 parent 04e25f5 commit b7e037d

20 files changed

+18244
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
/node_modules
3+
*-lock.*
4+
*.lock
5+
*.log
+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"log": {
3+
"loglevel": "debug"
4+
},
5+
"inbounds": [
6+
{
7+
"listen": "0.0.0.0",
8+
"port": "4080",
9+
"protocol": "socks",
10+
"settings": {
11+
"auth": "noauth",
12+
"udp": true,
13+
"ip": "0.0.0.0"
14+
}
15+
},
16+
{
17+
"listen": "0.0.0.0",
18+
"port": "4081",
19+
"protocol": "http"
20+
}
21+
],
22+
"dns": {
23+
"servers": ["8.8.8.8"]
24+
},
25+
"outbounds": [
26+
{
27+
"protocol": "vless",
28+
"settings": {
29+
"vnext": [
30+
{
31+
"address": "127.0.0.1",
32+
"port": 8788,
33+
"users": [
34+
{
35+
"id": "1a403b79-039b-4dc2-9b45-1ad13197b99a",
36+
"encryption": "none",
37+
"level": 0
38+
}
39+
]
40+
}
41+
]
42+
},
43+
"streamSettings": {
44+
"network": "ws",
45+
"wsSettings": {
46+
"path": "/vless"
47+
}
48+
// "security": "tls"
49+
},
50+
"tag": "zizi-ws"
51+
},
52+
{
53+
"protocol": "freedom",
54+
"tag": "direct"
55+
}
56+
],
57+
"routing": {
58+
"domainStrategy": "IPIfNonMatch",
59+
"rules": [
60+
{
61+
"type": "field",
62+
"ip": ["8.8.8.8"],
63+
"outboundTag": "zizi-ws"
64+
},
65+
{
66+
"type": "field",
67+
"ip": ["geoip:private"],
68+
"outboundTag": "zizi-ws"
69+
}
70+
]
71+
}
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"log": {
3+
"loglevel": "debug"
4+
},
5+
"inbounds": [
6+
{
7+
"listen": "0.0.0.0",
8+
"port": "4080",
9+
"protocol": "socks",
10+
"settings": {
11+
"auth": "noauth",
12+
"udp": true,
13+
"ip": "0.0.0.0"
14+
}
15+
},
16+
{
17+
"listen": "0.0.0.0",
18+
"port": "4081",
19+
"protocol": "http"
20+
}
21+
],
22+
"dns": {
23+
"servers": ["8.8.8.8"]
24+
},
25+
"outbounds": [
26+
{
27+
"protocol": "vless",
28+
"settings": {
29+
"vnext": [
30+
{
31+
"address": "127.0.0.1",
32+
"port": 8787,
33+
"users": [
34+
{
35+
"id": "1a403b79-039b-4dc2-9b45-1ad13197b99a",
36+
"encryption": "none",
37+
"level": 0
38+
}
39+
]
40+
}
41+
]
42+
},
43+
"streamSettings": {
44+
"network": "ws"
45+
// "wsSettings": {
46+
// "path": "/node-vless"
47+
// }
48+
// "security": "tls"
49+
},
50+
"tag": "zizi-ws"
51+
},
52+
{
53+
"protocol": "freedom",
54+
"tag": "direct"
55+
}
56+
],
57+
"routing": {
58+
"domainStrategy": "IPIfNonMatch",
59+
"rules": [
60+
{
61+
"type": "field",
62+
"ip": ["8.8.8.8"],
63+
"outboundTag": "zizi-ws"
64+
},
65+
{
66+
"type": "field",
67+
"ip": ["geoip:private"],
68+
"outboundTag": "zizi-ws"
69+
}
70+
]
71+
}
72+
}

dist/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This folder contains the built output assets for the worker "cf-worker-ws-dev" generated at 2023-05-26T18:01:56.750Z.

0 commit comments

Comments
 (0)