simple static image upload and hosting server, written in Rust Actix.
png, jpg, jpeg, gif, webp served as static files.
$ cargo build --release
$ ./target/release/image-server
$ curl -F "file=@/path/to/image.jpg" -H "Authorization: your_token" -X POST http://localhost:8080/upload
$ curl http://localhost:8080/i/filename.jpg
$ curl -H "Authorization: your_token" http://localhost:8080/delete/filename.jpg
Name | Description | Default |
---|---|---|
PASSWORD |
Token for authorization | "" |
REDIRECT_URI |
Redirect URI for GET / |
"" |