feat: add automation and inspection scripts for Nginx Proxy Manager and Authentik integration
This commit is contained in:
11
scripts/test_npm_exec.py
Normal file
11
scripts/test_npm_exec.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import paramiko
|
||||
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh.connect('140.44.4.71', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
|
||||
cmd = "docker exec $(docker ps -q --filter 'name=nginx-proxy-manager_app') ls -la /data/topology"
|
||||
stdin, stdout, stderr = ssh.exec_command(cmd)
|
||||
print("ls /data/topology:", stdout.read().decode())
|
||||
|
||||
ssh.close()
|
||||
Reference in New Issue
Block a user