Add wrangler.toml for Cloudflare Worker - #16
Open
hamsandvich wants to merge 5 commits into
Open
Conversation
Add a new wrangler.toml to configure the Cloudflare Worker for the git-lfs-s3-proxy project. Defines the worker name, main entry (_worker.js), and the compatibility_date (2026-03-02).
|
This helped me solve the cloudflare build issue. Thanks! |
Add a [limits] section to wrangler.toml with cpu_ms = 300_000 to raise the Cloudflare Worker CPU allowance (300s). This accommodates longer-running operations for the git-lfs-s3-proxy worker.
Remove the [limits] cpu_ms setting from wrangler.toml to avoid deployment failures for Cloudflare Pages Free accounts. Add a README note explaining that the checked-in wrangler.toml intentionally omits limits.cpu_ms because custom CPU limits are only supported on paid Workers plans, and that adding such a limit will break deployments from Free plan accounts.
Allow configuring S3 presigned URL lifetime via an EXPIRY Worker env var and clamp it to R2's 7-day max. _worker.js: add parseExpiry to validate and cap expiry, pass expiry into sign(), and use the parsed env.EXPIRY for generated actions so large/slow LFS pushes can increase the URL lifetime. README.md: document the EXPIRY environment variable and give a 24-hour example. wrangler.toml: add observability/logs/traces configuration entries (sampling, persistence, invocation logs) to enable platform telemetry.
Owner
|
Right, I think this is an issue of Workers vs. (now "legacy") Pages, git-lfs-s3-proxy having originally been built for the latter. Given Cloudflare seems to really push people towards Workers these days (well, Pages also uses Workers, technically, but differently, hence this issue) it probably makes sense to demote the Pages middleware to its own non-default branch and have |
ggangesh
approved these changes
Jul 11, 2026
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.
Add a new wrangler.toml to configure the Cloudflare Worker for the git-lfs-s3-proxy project. Defines the worker name, main entry (_worker.js), and the compatibility_date (2026-03-02).