v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
25
deploy/_port80_supabase.py
Normal file
25
deploy/_port80_supabase.py
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko
|
||||
|
||||
PASS = "Bbt9115xty9176!"
|
||||
for src, host, user in [
|
||||
("supabase", "10.10.0.11", "localadministrator"),
|
||||
("coolify", "10.10.0.10", "localadministrator"),
|
||||
]:
|
||||
print(f"\n######## {src} ########")
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect(host, username=user, password=PASS, timeout=20)
|
||||
cmds = [
|
||||
"sudo ss -tlnp | grep ':80 '",
|
||||
"docker ps --format 'table {{.Names}}\t{{.Ports}}' | grep -E '80|443|kong|proxy|nginx|traefik' ",
|
||||
"curl -sSI --max-time 10 -H 'Host: thepinkpulse.com' http://10.10.0.11/ | head -6",
|
||||
"curl -sSI --max-time 10 -H 'Host: thepinkpulse.com' http://127.0.0.1/ | head -6",
|
||||
"curl -sSI --max-time 10 -H 'Host: exposedgays.com' -k https://127.0.0.1/ | head -6",
|
||||
]
|
||||
for cmd in cmds:
|
||||
print(f"\n=== {cmd} ===")
|
||||
_, o, e = c.exec_command(cmd, timeout=30)
|
||||
o.channel.recv_exit_status()
|
||||
print((o.read() + e.read()).decode(errors="replace")[:2000])
|
||||
c.close()
|
||||
Reference in New Issue
Block a user