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>
10 lines
413 B
Python
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()
|