mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 06:38:18 +03:00
feat(cluster0): add Janus SFU deploy script and graph gzip smoke test
deploy-janus-sfu.sh installs Janus on cast02, writes signaling config, and templates CAST02_IP into nginx; populate gains --phase sfu. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,7 +17,11 @@ if [ -f "$GIT_NGINX" ] && [ "$(realpath "$GIT_NGINX" 2>/dev/null)" != "$(realpat
|
||||
fi
|
||||
fi
|
||||
[ -s "$CONF_DST" ] || die "missing or empty nginx template at $CONF_DST"
|
||||
install -D -m 644 "$CONF_DST" /etc/nginx/http.d/androidcast.conf
|
||||
load_cluster_env 2>/dev/null || true
|
||||
CAST02_IP="${CAST02_IP:-10.7.16.237}"
|
||||
sed "s/@CAST02_IP@/${CAST02_IP}/g" "$CONF_DST" > /tmp/androidcast.conf.$$
|
||||
install -D -m 644 /tmp/androidcast.conf.$$ /etc/nginx/http.d/androidcast.conf
|
||||
rm -f /tmp/androidcast.conf.$$
|
||||
rm -f /etc/nginx/http.d/default.conf /etc/nginx/http.d/cluster.conf 2>/dev/null || true
|
||||
nginx -t
|
||||
rc-service nginx reload
|
||||
|
||||
Reference in New Issue
Block a user