nomadro/apps/admin/deploy/_fix_live_nginx.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

31 lines
844 B
Python

# -*- coding: utf-8 -*-
import time
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"""
set -e
echo '=== who serves 443 ==='
sudo ss -lntp | grep ':443'
echo '=== caddy? ==='
systemctl is-active caddy 2>/dev/null || true
ls /etc/caddy 2>/dev/null | head
echo '=== nginx? ==='
systemctl is-active nginx 2>/dev/null || true
sudo nginx -T 2>/dev/null | grep -E 'server_name|8020|api/social|listen 443' | head -40
echo '=== find social proxy ==='
sudo grep -R '8020\|api/social' /etc /var/www -g '!*.log' 2>/dev/null | head -30
"""
_, o, _ = c.exec_command(cmd, timeout=60, get_pty=True)
print(o.read().decode("utf-8", "replace"))
c.close()