v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
20
deploy/check-dns.py
Normal file
20
deploy/check-dns.py
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect("10.10.0.10", username="localadministrator", password="Bbt9115xty9176!", timeout=20)
|
||||
|
||||
cmds = [
|
||||
"grep -A3 'exposedgays' /etc/cloudflared/config.yml",
|
||||
"curl -sS -o /dev/null -w 'local_traefik:%{http_code}' -k -H 'Host: exposedgays.com' https://127.0.0.1/",
|
||||
"curl -sS -o /dev/null -w 'public:%{http_code}' --max-time 15 https://exposedgays.com/ 2>&1 || echo public_failed",
|
||||
]
|
||||
|
||||
for cmd in cmds:
|
||||
print("$", cmd)
|
||||
_, o, e = c.exec_command(cmd, timeout=30)
|
||||
print((o.read() + e.read()).decode().strip())
|
||||
print()
|
||||
|
||||
c.close()
|
||||
Reference in New Issue
Block a user