A JavaScript-based Subscription Link Provider powered by Cloudflare Workers.
Follow these steps to set up SubLink-Worker:
- Register for a free account at Cloudflare.
- Navigate to Workers > KV in your Cloudflare dashboard.
- Click Create namespace.
- Name your namespace
sub
. - Note down the Namespace ID for later use.
- Go to Workers & Pages > Workers.
- Click Create a Service.
- Choose Start from scratch, name it (e.g.,
sublink-worker
), and click Create service.
- In the Worker editor, delete the default code.
- Copy the entire code from
Worker.js
. - Paste it into the Cloudflare Worker editor.
- Click on the Settings tab in the Worker editor.
- Under Variables > KV Namespace Bindings, click Add binding.
- Variable name:
sub
(must be lowercase to match the code). - KV namespace: Select the
sub
namespace you created earlier.
- Variable name:
- Click Save.
- Click Save and Deploy.
- Note your Worker URL (e.g.,
https://sublink-worker.your-subdomain.workers.dev
).
- Visit
https://your-worker-url/admin
in your browser. - First-Time Setup:
- Set an admin password when prompted.
- Login:
- Enter your password to access the admin dashboard.
- Provide users with your Worker URL (e.g.,
https://your-worker-url/
). - Users can add this URL to their clients to access the proxy links.
Works with various clients, including:
- V2rayN
- V2rayNG
- Nekobox
- Shadowrocket
- Quantumult X
- Custom Domains: You can bind a custom domain to your Worker for a personalized URL.
- Security: Choose a strong admin password and keep your Worker URL secure.
- KV Limits: Be aware of Cloudflare Workers KV read/write limits on the free plan.
This project is licensed under the MIT License.
Replace your-worker-url
with your actual Worker URL in the instructions.