Harden the chat hub, evict idle rate-limit keys, isolate Dozzle
- Chat: cap frame, message and file URL sizes, put a write deadline on every send so a stalled client can't hold the hub lock, and check the save, prune and history errors instead of broadcasting an unsaved message. ChatPanel's maxlength stays under the server cap. - RateLimiter: sweep keys idle past the window, at most once a window. - Dozzle: move to an internal dozzle-net shared only with Caddy, so the admin gate is the only way to reach the Docker socket. - Drop the GraphQL WebSocket transport: the route is POST-only and the schema has no subscriptions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+7
-1
@@ -17,6 +17,11 @@ networks:
|
||||
usaco-runner-net:
|
||||
driver: bridge
|
||||
internal: true
|
||||
# internal, and shared only with caddy: the admin gate is the only way in,
|
||||
# since dozzle holds the Docker socket.
|
||||
dozzle-net:
|
||||
driver: bridge
|
||||
internal: true
|
||||
|
||||
# Named volumes survive `down`; only `down -v` deletes them.
|
||||
volumes:
|
||||
@@ -88,6 +93,7 @@ services:
|
||||
- radar.${DOMAIN}
|
||||
# Matches cloudflared's extra_hosts.
|
||||
ipv4_address: 172.28.255.251
|
||||
dozzle-net:
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
@@ -360,7 +366,7 @@ services:
|
||||
container_name: dozzle
|
||||
restart: always
|
||||
networks:
|
||||
- app-network
|
||||
- dozzle-net
|
||||
environment:
|
||||
- DOZZLE_BASE=/dozzle
|
||||
- DOZZLE_NO_ANALYTICS=true
|
||||
|
||||
Reference in New Issue
Block a user