Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
Go to file
dependabot[bot] 3afcdcfe46
Bump ws from 8.16.0 to 8.17.1 (#7)
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 09:46:59 +08:00
src prettierrc printWidth 120 2024-03-02 13:54:52 +08:00
.editorconfig Initial commit 2023-11-27 13:46:18 +08:00
.gitignore Initial commit 2023-11-27 13:46:18 +08:00
.prettierrc prettierrc printWidth 120 2024-03-02 13:54:52 +08:00
package-lock.json Bump ws from 8.16.0 to 8.17.1 (#7) 2024-06-19 09:46:59 +08:00
package.json pettier . --write 2023-12-24 13:51:38 +08:00
README.md Update README.md and wrangler.toml 2023-12-26 19:44:27 +08:00
tsconfig.json prettierrc printWidth 120 2024-03-02 13:54:52 +08:00
wrangler.toml Update README.md and wrangler.toml 2023-12-26 19:44:27 +08:00

r2-webdav

Deploy to Cloudflare Workers

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