This project comes from zizifn/edgetunnel
- Support using non-standard ports as proxy ports.
- Support using KV to configure uuid, proxy ip, proxy port, and socks5 address
( Although deployment is automatic, I don't like to see many deployment records that cannot be deleted. Now I only need to modify the value of KV without deploying. )
- Log in to the Cloudflare dashboard.
- Select Workers & Pages > KV.
- Select Create a namespace.
- Enter a name for your namespace.
- Select Add.
- View the created namespace
- Add entries as shown in the table below
Key | Value(example) |
---|---|
uuid | d342d11e-d424-4583-b36e-524ab1f0afa4 |
ip | 1.1.1.1 |
port | 443 |
socks5 | user:pass@host:port or host:port |
- The uuid needs to be legal
- Port can be omitted, default to 443
- Socks5 can be omitted. Setting the address will ignore proxyIP. The user name and password do not contain special characters
- Go to Workers & Pages.
- Select your Worker.
- Select Settings > Variables.
- Go to KV Namespace Bindings.
- Select Add binding.
- Set the variable name to "PROXY", then select the namespace created above and click "Save and Deploy"
Variable name | KV Namespace |
---|---|
PROXY | Select the namespace created above |
[ Windows ] Press "Win + R", input cmd and run:
Powershell -NoExit -Command "[guid]::NewGuid()"