https://github.com/haasal/fileserver.git
This is a simple, yet powerful Actix file server written in Rust, which provides file access through a secure API key authentication mechanism. It serves files from a local directory while ensuring that only trusted web services can access them.
To access a file from the server, send a GET request to the server with the desired file path and include the x-api-key header with the correct API key.
Example:
GET /path/to/file.txt
x-api-key: yourapikey
If the provided API key is correct and the file exists, the server will return the file. Otherwise, it will return an error with the appropriate status code.