Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roushou/axum-cloudflare-r2
https://github.com/roushou/axum-cloudflare-r2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/roushou/axum-cloudflare-r2
- Owner: roushou
- License: mit
- Created: 2024-08-06T00:00:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T03:17:28.000Z (5 months ago)
- Last Synced: 2024-08-09T04:54:48.056Z (5 months ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 0
- 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
```