Add HAProxy TLS routing for HK CMI

This commit is contained in:
Codex
2026-09-02 22:11:50 -07:00
parent 1b65bba73a
commit dc04ab9eac
14 changed files with 76 additions and 66 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Hong Kong CMI rollback-only Snell entrypoint.
set -eu
: "${PSK:?PSK is required}"
: "${PORT:?PORT is required}"
case "$PORT" in
*[!0-9]*|'') echo "PORT must be numeric" >&2; exit 1 ;;
esac
umask 077
cat > /tmp/snell-server.conf <<EOF
[snell-server]
listen = :::${PORT}
psk = ${PSK}
EOF
exec /usr/local/bin/snell-server -c /tmp/snell-server.conf