An open API service indexing awesome lists of open source software.

https://github.com/roushou/axum-cloudflare-r2

Axum multipart upload to Cloudflare R2
https://github.com/roushou/axum-cloudflare-r2

aws-sdk-rust axum cloudflare-r2 rust

Last synced: 5 months ago
JSON representation

Axum multipart upload to Cloudflare R2

Awesome Lists containing this project

README

        

# Axum Cloudflare R2

This repository is an example of a multipart upload to Cloudflare [R2](https://www.cloudflare.com/developer-platform/r2/) using AWS S3 [Rust SDK](https://github.com/awslabs/aws-sdk-rust).

## Getting started

Set environment variables.

```
R2_ACCOUNT_ID=
R2_ACCESS_ID=
R2_ACCESS_SECRET=
R2_BUCKET_NAME=
R2_REGION=
```

Launch HTTP server with your environment variables loaded. For example using [dotenvx](https://dotenvx.com/).

```sh
$ dotenvx run -- cargo run
```