Skip to content

New system

Latest

Choose a tag to compare

@kemolumi kemolumi released this 18 Aug 03:51
· 5 commits to main since this release

Setup:

Setup Cloudflare Workers up and running:

  1. Go to Cloudflare Workers playground with MCCL Workers preset.

  2. On top right of the screen, press Deploy.
    image

  3. It should took you to the account sign up if you don't have one logged in.

  4. After that, Cloudflare should take you to this page, if not, just go back to step 2.
    image

  5. Change name to whatever you want, then go ahead and click Deploy bottom right.
    image

  6. Now, in the menu, go to KV, it should be inside Workers & Pages.
    image

  7. Click on Create a namespace, you get to choose the name on this one, I'll name mccl, then add it.
    image

  8. Now the KV has been created, let's go ahead and navigate to R2 and create a bucket to actually store our server, if you don't see it, just scroll down in the menu.
    image

  9. Then it will ask for banking information, this in place to charges you money when you go over the limit, you can use PayPal or debit card, don't worry, MCCL won't go over that limit easily.
    image

  10. After you done with all that, it should allows you to Create bucket.
    image

  11. You get to choose the name again, in this one, I'm also go for mccl.
    image

  12. And there we go.
    image

  13. From there, go back to Workers & Pages.
    image

  14. Click on our created worker.
    image

  15. Then go to Settings.
    image

  16. Click Variables.
    image

  17. Scroll down, you'll see KV Namespace Bindings. Press on Edit variables, then binds our created KV to this. Variable name MUST be "KV"
    image

  18. Click Deploy to save changes.

  19. Right under KV Namespace Bindings, we'll see R2 Bucket Bindings, just like KV binding, but variable name MUST be "BUCKET".
    image

  20. And there you go, you have successfully deployed an MCCL Worker.

Setup MCCL Client.

  1. Go back to KV section, find your KV and click on View.
    image

  2. Then add name and key and token as value to KV like this, you can generate token from here.
    image

  3. Create as many as you want, anyone with this pair of name and token can access and has full control over the server, you can revoke it anytime by deleting their entry.

  4. There are some MCCL's internal variables when using, that is lastRun and sessionHostOwner, do not edit it unless you know what you're doing.

  5. Everything on MCCL Workers is now done 🚀. You can proceed to setup MCCL Client.