Skip to content

Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.

Notifications You must be signed in to change notification settings

abersheeran/r2-webdav

Repository files navigation

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

Test

Use litmus to test.

About

Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published