When calling `axum::serve`, use `.with_graceful_shutdown()` to register
a `ctrl+c` handler, so that Iocaine can be gracefully shut down. This
also allows gracefully shutting it down when running inside a container.
Fixes#1, thanks @alciregi!
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
The initial seed is used by the RNG, and the intended use is to allow
modifying the generated output without otherwise modifying the
configuration, while still being a static, controllable seed that can be
shared between instances if need be.
Thanks to @buherator@infosec.place for the idea!
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
Moved the reverse proxy examples out of the README, into
`docs/deploying.md`. Also wrote the reverse proxy section for the
deployment docs.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This adds plenty of documentation: describing what iocaine is, how it
does what it does, and how to deploy it in various scenarios.
Not complete yet, but reasonably detailed nevertheless.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This is expected to run through a systemd system service, with the
config file explicitly specified. Using XDG for the default config makes
little sense in that case, and ends up causing issues with a strict
systemd service file.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>