solution
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-27 16:42:18 +03:00
parent 20afc2c790
commit a884c07867
133 changed files with 27001 additions and 120 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# В контейнере API два процесса: mTLS-шлюз на 8081 и uvicorn на loopback.
# API-порт не публикуется, поэтому единственный вход — шлюз с проверкой
# client certificate и SAN балансировщика.
set -eu
python -m messenger.mtls_gateway --config "${GATEWAY_CONFIG:-/etc/gateway/api.json}" &
GATEWAY_PID=$!
term() {
kill -TERM "$GATEWAY_PID" 2>/dev/null || true
}
trap term TERM INT
python -m messenger &
APP_PID=$!
wait "$APP_PID"
STATUS=$?
term
wait "$GATEWAY_PID" 2>/dev/null || true
exit "$STATUS"