Skip to content

Axum integration with S3-compatible storage example

Notifications You must be signed in to change notification settings

KivApple/axum_s3_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axum integration with S3-compatible storage example

Uses axum and rust-s3 crates.

Implements two endpoints:

  • POST /uploads - Upload a file from "upload" field of multipart/form-data request body.
  • GET /uploads/:name - Download a previously uploaded file.

Configured using following environment variables:

  • HOST - an address for binding of listening socket
  • PORT - a port to listen
  • UPLOAD_BUCKET_NAME
  • UPLOAD_BUCKET_REGION
  • UPLOAD_BUCKET_ACCESS_KEY
  • UPLOAD_BUCKET_SECRET_KEY
  • UPLOAD_BUCKET_ENDPOINT

More info: https://eternal-search.com/axum-s3

About

Axum integration with S3-compatible storage example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages