make listening address configurable
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 20m20s

This commit is contained in:
Sebastian Hugentobler 2024-06-26 08:06:48 +02:00
parent 191e5b66c3
commit 672c50e5c5
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
7 changed files with 47 additions and 11 deletions

View file

@ -33,10 +33,19 @@ From there on `cargo run` and `cargo build` and so on can be used.
# Configuration
The binary takes exactly one argument, the path to the calibre library folder.
```
Usage: little-hesinde [OPTIONS] -- <LIBRARY_PATH>
The listening port is hardcoded to `3000` for now, as is the listening on all
interfaces.
Arguments:
<LIBRARY_PATH> Calibre library path
Options:
-l, --listen-address <LISTEN_ADDRESS> Address to listen on [default: [::1]:3000]
-h, --help Print help
-V, --version Print version
```
Example: `little-hesinde -l [::]4000 -- ~/Documents/library/`
# Usage