Commit graph

16 commits

Author SHA1 Message Date
Gergely Nagy
b214131d8b
app: Implement graceful shutdown
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>
2025-01-19 22:04:55 +01:00
Gergely Nagy
85e6f4f66f Typo fix
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-19 21:39:52 +01:00
Gergely Nagy
764cf9afd0
Add an "initial_seed" option
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>
2025-01-19 19:16:04 +01:00
Gergely Nagy
663bcf8dba
More see also!
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-17 23:16:38 +01:00
Gergely Nagy
3176989f2f
README.md: Add another "See also" software
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-17 18:43:35 +01:00
Gergely Nagy
f83f54981f
README: Mention a few similar software
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-17 02:01:52 +01:00
Gergely Nagy
10cd6b9837
Typo fixes
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-17 01:29:52 +01:00
Gergely Nagy
fe7cf44f26
Another round of documentation updates
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>
2025-01-17 01:28:17 +01:00
Gergely Nagy
7b2e472e35
Major documentation update
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>
2025-01-16 23:44:57 +01:00
Gergely Nagy
65cc8365d6
ci: build & publish the container image too
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 19:31:44 +01:00
Gergely Nagy
b1a4d5bff8
nix: Add a container-image
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 19:28:53 +01:00
Gergely Nagy
598338094c
Fix the tokio-console feature
Don't initialize `tracing_subscriber` if the `tokio-console` feature is
enabled - they conflict.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 14:20:38 +01:00
Gergely Nagy
0fa4f666f5
nix: Add a NixOS module
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 12:27:10 +01:00
Gergely Nagy
a01cb16ae0
cli: Default to "config.toml" as config file
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>
2025-01-16 12:24:16 +01:00
Gergely Nagy
9658f95ac3
poison: Remove a superfluous <p></p>
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 12:23:25 +01:00
Gergely Nagy
f28642532d
Initial import
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-16 10:44:56 +01:00