nomadro/apps/ebook/deploy/caddy_probe.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

10 lines
413 B
Python

#!/usr/bin/env python3
import paramiko, sys
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect("107.173.30.245", username="root", password="Xiao4669805", timeout=20)
_, stdout, _ = client.exec_command("cat /etc/caddy/Caddyfile")
print(stdout.read().decode("utf-8", errors="replace"))
client.close()