Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abersheeran/r2-webdav
Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
https://github.com/abersheeran/r2-webdav
cloudflare-r2 cloudflare-workers webdav
Last synced: 8 days ago
JSON representation
Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
- Host: GitHub
- URL: https://github.com/abersheeran/r2-webdav
- Owner: abersheeran
- Created: 2023-10-25T09:16:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T02:59:04.000Z (18 days ago)
- Last Synced: 2024-10-19T05:23:13.025Z (16 days ago)
- Topics: cloudflare-r2, cloudflare-workers, webdav
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 123
- Watchers: 2
- Forks: 88
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r2-webdav
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/abersheeran/r2-webdav)
Use Cloudflare Workers to provide a WebDav interface for Cloudflare R2.
## Usage
Change wrangler.toml to your own.
```toml
[[r2_buckets]]
binding = 'bucket' # <~ valid JavaScript variable name, don't change this
bucket_name = 'webdav'
```Then use wrangler to deploy.
```bash
wrangler deploywrangler secret put USERNAME
wrangler secret put PASSWORD
```## Development
With `wrangler`, you can build, test, and deploy your Worker with the following commands:
```sh
# 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