Import ECS deployed relay source and historical patches (2026-10-27)

This commit is contained in:
ex_tianzy
2026-10-27 17:26:58 +08:00
commit 011a7797ee
319 changed files with 34265 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
test "$#" -eq 1 || { echo 'Usage: bash scripts/bootstrap.sh relay.your-domain'; exit 1; }
test ! -f .env || { echo '.env exists; refusing to overwrite credentials'; exit 1; }
docker build -t hainuo-relay:0.1.0 .
docker run --rm --user "$(id -u):$(id -g)" \
-v "$PWD:/work" -w /work hainuo-relay:0.1.0 init --hostname "$1"
echo 'Initialized. Configure .env and replace runtime/tls/server.pem + server.key before acceptance.'
echo 'Keep operator/ca.key offline on the certificate-signing workstation.'