Добавил TLS и защиту мессенджера для лабораторной 7

This commit is contained in:
2026-11-29 13:06:06 +03:00
parent 20afc2c790
commit d15d78efdf
100 changed files with 4067 additions and 62 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$repo"
case "$TARGET_INSTANCE_ID" in
api-1|api1) docker compose --env-file .env stop --timeout 1 envoy-api1 api1 >/dev/null; exit 0 ;;
api-2|api2) docker compose --env-file .env stop --timeout 1 envoy-api2 api2 >/dev/null; exit 0 ;;
esac
printf '%s\n' 'API instance alias was not found' >&2
exit 1