v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish

This commit is contained in:
Ryan Salazar
2026-06-26 21:08:57 -04:00
parent c6238c3bcf
commit e03d929977
121 changed files with 6380 additions and 153 deletions

35
deploy/_dump_remote.py Normal file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env python3
import json
import re
import paramiko
PASS = "Bbt9115xty9176!"
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("10.10.0.10", username="localadministrator", password=PASS, timeout=30)
_, o, e = c.exec_command(
"sudo journalctl -u cloudflared --no-pager -n 200 | grep 'Updated to new configuration' | tail -1",
timeout=30,
)
o.channel.recv_exit_status()
line = (o.read() + e.read()).decode()
start = line.find('config="')
if start == -1:
print("missing config=")
print(line[:500])
c.close()
raise SystemExit(1)
raw = line[start + len('config="'):]
# config value ends before final quote on line
raw = raw.rsplit('"', 1)[0]
raw = raw.encode().decode("unicode_escape")
cfg = json.loads(raw)
ingress = cfg.get("ingress", [])
print(f"total rules: {len(ingress)}")
for i in ingress:
h = i.get("hostname", "(catch-all)")
svc = i.get("service")
print(f" {h} -> {svc}")
if h and "exposed" in h:
print("FOUND")
c.close()