Small server to host images (Stateless). It only relies on filesystem.
By default Illuin listens on 8080
and store data in the temporary data folder (ex: on Linux /tmp/illuin
; on Windows C:\Users\YOURUSER\AppData\Local\Temp\illuin
)
Illuin is not entirely configuration through the Env vars, it only listens for the port with the key PORT
.
--base-route <base_route>
: Prepend all routes with provided value. Format must be like:/base/
[default: /]--port <port>
,-p <port>
, : Use a the listen port of the app [default: 8080]--storage-path <storage_path>
,-s <storage_path>
: Path where the image are stored [default: temporary folder of your OS]-h
: display the help information
To properly use Illuin (in a docker for instance), you should have a dedicated folder.
Example: ./illuin --storage-path /srv/illuin/data
Rust
toolchain withnightly
- To compile it requires
Rust Nightly
make build
or make build-release
(for production) or cargo build
or cargo build --release
(for production)
cargo run -- <ARGS ...>
(--
is mandatory, it delimits cargo args and the app args)
It requires to have the template folder next the the binary.
Once compiled the binary is in the target/[debug or release]/illuin
./Illuin
make CI
orcargo check && cargo clippy && cargo test