Cloudflare Account Setup

Live links work out of the box through GreenLight’s open storage — this page is for hosting them yourself instead, so the URL, the files, and the comments all sit in your own Cloudflare account.

The app sets it all up for you. There is no wrangler CLI, no wrangler.toml, and nothing to deploy by hand.

Run the wizard

  1. Open any board → Share board in the top bar.
  2. Under the two cards, the notice reads “Live links are shared via GreenLight’s open storage”. Click Create own private storage.
  3. Create a free account at cloudflare.com, then open My Profile → API Tokens.
  4. Create Token → Custom token, with three Account permissions:
    • Workers Scripts: Edit
    • Workers R2 Storage: Edit
    • D1: Edit
  5. Copy the token, paste it into the field in the dialog, and click Create private sharing.

If the token can reach several Cloudflare accounts, the wizard asks which one to use.

The app then runs the whole setup and shows a checklist as each step completes:

  • creates the R2 bucket moodboard-shares,
  • creates the D1 database moodboard-comments and applies its schema,
  • uploads the share Worker with both bindings,
  • generates and stores a SHARE_TOKEN_SECRET,
  • enables your workers.dev subdomain.

Your Cloudflare API token is used once for this and is never stored. Re-running the wizard is safe: an existing bucket and database are reused and the Worker is simply updated.

No restart is needed. The next share you publish uses your own storage, and its URL is on your workers.dev subdomain.

Sanity check

Open a board → Share boardShare under Live Link. The dialog should show a URL within a few seconds, now pointing at your own subdomain. Open it in a browser — the board appears with comments enabled.

Custom domain (optional)

To serve from share.your-brand.com instead of workers.dev, attach the domain to the moodboard-share Worker in the Cloudflare dashboard (Workers & Pages → Settings → Domains & Routes).

Keep the workers.dev route enabled — links you already handed out point at it.

Manual setup (advanced)

If you would rather deploy the Worker yourself, the cloudflare-share directory in the project repo still contains the Worker source and schema.sql. After deploying it with wrangler, paste the Worker URL and your SHARE_TOKEN_SECRET into Settings → Cloudflare Sharing (Worker URL and API Token) — the app treats those two values exactly like the ones the wizard writes.

Where to go next

Was this helpful?

0

Updated

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *