Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
![]() Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
src | ||
.editorconfig | ||
.gitignore | ||
.prettierrc | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
wrangler.toml |
r2-webdav
Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
Usage
Change wrangler.toml to your own.
[[r2_buckets]]
binding = 'bucket' # <~ valid JavaScript variable name, don't change this
bucket_name = 'webdav'
Then use wrangler to deploy.
wrangler deploy
wrangler secret put USERNAME
wrangler secret put PASSWORD
Development
With wrangler
, you can build, test, and deploy your Worker with the following commands:
# run your Worker in an ideal development workflow (with a local server, file watcher & more)
$ npm run dev
# deploy your Worker globally to the Cloudflare network (update your wrangler.toml file for configuration)
$ npm run deploy
Read the latest worker
crate documentation here: https://docs.rs/worker