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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user