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>
29 lines
800 B
Python
29 lines
800 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"""
|
|
set -e
|
|
find /www/server/panel/vhost/nginx -maxdepth 1 -type f -name '*.conf' | sort
|
|
echo '---'
|
|
F=$(find /www/server/panel/vhost/nginx -maxdepth 1 -type f -name 'nomadro.cn.conf' | head -1)
|
|
echo "F=$F"
|
|
if [ -n "$F" ]; then
|
|
grep -n 'location\|8020\|proxy_pass\|social\|live\|server_name' "$F" | head -80
|
|
fi
|
|
# also check extension
|
|
ls /www/server/panel/vhost/nginx/extension/nomadro.cn 2>/dev/null || true
|
|
"""
|
|
_, o, _ = c.exec_command(cmd, timeout=60, get_pty=True)
|
|
print(o.read().decode("utf-8", "replace"))
|
|
c.close()
|