Add proof-of-work challenge, session hub support, and status metrics across backend and frontend apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-13 11:43:49 +02:00
1 parent b841c2d1f6
commit 9647ac8c50
29 files changed
+1492 -292

No files matched your search

+6
View File
@@ -41,11 +41,17 @@ services:
depends_on: [spawner]
ports:
- "127.0.0.1:${BACKEND_PORT:-8380}:8080"
- "127.0.0.1:${METRICS_PORT:-9380}:9090"
environment:
SPAWNER_SOCKET: /run/spawner/spawner.sock
STATUS_DIR: /run/status
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://security-command.org}
MAX_SESSIONS: ${MAX_SESSIONS:-12}
MAX_QUEUE: ${MAX_QUEUE:-20}
POW_DIFFICULTY: ${POW_DIFFICULTY:-20}
volumes:
- ./runtime/spawner:/run/spawner
- ./runtime/status:/run/status
logging:
driver: json-file
options:
+11
View File
@@ -9,3 +9,14 @@ BACKEND_PORT=8380
# Comma separated origins allowed to open terminal sessions.
ALLOWED_ORIGINS=https://security-command.org
# Local port of the Prometheus metrics, published to loopback only.
METRICS_PORT=9380
# Session limits.
MAX_SESSIONS=12
MAX_QUEUE=20
# Leading zero bits of SHA-256 a new sandbox costs while the server is mostly
# idle. Each extra bit doubles the work; 20 takes about a second on a desktop.
POW_DIFFICULTY=20
-2
View File
@@ -5,14 +5,12 @@ location / {
proxy_pass http://127.0.0.1:8380;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location = /ws {
proxy_pass http://127.0.0.1:8380;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 120s;