Switch to axum and session-rs 0.2 with a health endpoint

- Serve the session WebSocket on `/` through axum
  (`Session::from_axum`) with a 1 MiB message limit
- Add `/health` (checks the database) and a `server healthcheck`
  subcommand used by the Dockerfile HEALTHCHECK
- Shut down on SIGTERM/Ctrl+C so container stops are immediate
- Move per-connection handler registration into `register_handlers`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-09-25 05:44:15 +02:00
co-authored by claude
parent 6058367d96
commit 1f874a5cff
4 changed files with 398 additions and 437 deletions
+3
View File
@@ -39,4 +39,7 @@ ENV BIND_ADDR=0.0.0.0:8080 \
EXPOSE 8080
VOLUME ["/data"]
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD ["server", "healthcheck"]
CMD ["server"]