nomadro/apps/admin/deploy/_verify_live_proxy.py
Eric 92bbee3c6c Ship native social weapp: immersive hall chat, SRS live, join pay.
Wire Taro social pages to social_svc (Centrifugo + live RTMP), drop multi-channel chat chrome, and add weapp WXSS sanitize/deploy helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-02 12:33:35 +08:00

27 lines
806 B
Python

# -*- coding: utf-8 -*-
import paramiko
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect(
"82.157.112.245",
username="ubuntu",
password="Xiao4669805",
timeout=60,
allow_agent=False,
look_for_keys=False,
)
cmd = r"""
# GET with max-time; print status + key headers
curl -sk --max-time 3 -D - -o /dev/null 'https://nomadro.cn/live/nope.flv' | head -25 || true
echo '----'
curl -s --max-time 3 -D - -o /dev/null 'http://127.0.0.1:1985/live/nope.flv' | head -20 || true
echo '---- ext file ----'
sudo cat /www/server/panel/vhost/nginx/extension/www.nomadro.cn/live-flv.conf
echo '---- rtmp port ----'
ss -lntp | grep 1935 || true
"""
_, o, _ = c.exec_command(cmd, timeout=40, get_pty=True)
print(o.read().decode("utf-8", "replace"))
c.close()