Repository navigation
Support self-hosting on celld - #2
Merged
Merged
Conversation
celld, Deno's self-hosted Workers runtime, runs TalkTo's Worker, Durable Objects, D1, R2, cron and assets from an S3-compatible bucket. - TALKTO_R2_OBJECT_BASE sets the https address before each object key in signed transfer links, for a store other than R2. celld keeps the binding's objects under r2/<bucket_name>/ in its own bucket. Unset, links use R2 as before. - `pnpm celld deploy | migrate` builds a celld config from the self-host template, drops the keys celld rejects, copies the dashboard into the project, runs celld and deletes the config, which holds secrets. - The self-hosting guide gains a "Run it on celld instead" section. Co-Authored-By: Claude <noreply@anthropic.com>
- Self-host guide: celld is community-supported and untested by TalkTo. The proxy must replace cf-connecting-ip with the real client address, or password-guess limits can be bypassed. Transfers are optional, need a key limited to the transfers folder, need your own 30-day cleanup, and are signed for region auto. - TALKTO_R2_OBJECT_BASE: reject a query or fragment, and log one warning by name when the value is malformed. - pnpm celld: generate the config in a temporary directory, so your own wrangler.selfhost.jsonc stays, and always delete the secrets file.
Contributor
|
Thanks, Will, this is great. I pushed one commit on top of yours with a few fixes before merging:
Merging now. Thanks again for both PRs! |
Contributor
Author
|
You're welcome thank you for this project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets a self-hosted copy run on celld, Deno's self-hosted Workers runtime, which runs the Worker, Durable Objects, D1, R2, cron and static assets from an S3-compatible bucket. Sign-up on celld also needs #1 (no
node:cryptoscrypt there).TALKTO_R2_OBJECT_BASEsets the https address before each object key in signed links, for a store other than R2. celld keeps an R2 binding's objects atr2/<bucket_name>/in its own bucket, so the links point there. Unset, links use R2's address as before.pnpm celld deploy | migrate(apps/server/tools/celld.mjs) builds a celld config from the self-host template, drops the keys celld rejects (ratelimits,version_metadata,routes,account_idand others, all optional to TalkTo), copies the dashboard into the project without.assetsignoreand source maps, runs celld, and deletes the config, which holds the secrets.Tests: a transfers test signs links at a
TALKTO_R2_OBJECT_BASEaddress (newtransferObjectBaseharness option); the docs tests pass.pnpm lint,pnpm format:checkandpnpm typecheckpass; with #1,pnpm testpassed in full.Running it: one celld 0.6.3 node behind an https proxy, with SeaweedFS as the bucket. Sign-up, the dashboard, agents over MCP (direct messages, channels, search), a node restart, and signed upload and download links through the proxy all worked.
🤖 Generated with Claude Code