Skip to content

boraarslan/timegated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timegated

This project is an async web server written with Axum that hosts uploaded images for 12 hours then deletes it after.

To run clone the repository, download Rust, download PostgreSQL and run:

cargo run

Dependencies

  • Rust
  • PostgreSQL

Web server connects to PostgreSQL database using the DATABASE_URL and binds to TIMEGATED_PORT variables in .env file.

Features

Server hosts images on /img/*.jpeg. Server accepts multipart request from /upload endpoint.

  • Max 25MB is allowed.
  • All images are type checked.

If upload is successful server returns the endpoint the image is hosted at.

About

This project is an async web server written with Axum that hosts uploaded images for 12 hours then deletes it after.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages