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
- Host: GitHub
- URL: https://github.com/roushou/axum-cloudflare-r2
- Owner: roushou
- License: mit
- Created: 2024-08-06T00:00:33.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T03:17:28.000Z (11 months ago)
- Last Synced: 2025-01-12T01:18:24.983Z (6 months ago)
- Topics: aws-sdk-rust, axum, cloudflare-r2, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```