nomadro/apps/ebook/dymini/deploy/_inspect_nginx.py
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

20 lines
667 B
Python

import paramiko
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("82.157.112.245", username="ubuntu", password="Xiao4669805", timeout=30)
cmd = r"""
sudo ls /www/server/panel/vhost/nginx/ | grep -E 'dy'
echo '---'
sudo head -50 /www/server/panel/vhost/nginx/dy.nomadro.cn.conf
echo '---CERTS---'
sudo ls /etc/letsencrypt/live 2>/dev/null | head -30
"""
_, o, e = c.exec_command(cmd)
from pathlib import Path
out = o.read().decode("utf-8", "replace")
err = e.read().decode("utf-8", "replace")
Path(__file__).with_name("_inspect_out.txt").write_text(out + "\nERR\n" + err, encoding="utf-8")
print("wrote", len(out))
c.close()