feat: add automation scripts for inspecting proxy providers and updating Nginx configurations
This commit is contained in:
@@ -9,3 +9,4 @@ stdin, stdout, stderr = client.exec_command(cmd)
|
||||
print("49.conf (ai.snarfnet.net):\n", stdout.read().decode())
|
||||
|
||||
client.close()
|
||||
|
||||
|
||||
@@ -16,3 +16,4 @@ req = urllib.request.Request("https://authentik.snarfnet.net/api/v3/providers/pr
|
||||
with urllib.request.urlopen(req, context=ctx) as resp:
|
||||
p = json.loads(resp.read().decode())
|
||||
print(json.dumps(p, indent=2))
|
||||
|
||||
|
||||
@@ -16,3 +16,4 @@ req = urllib.request.Request("https://authentik.snarfnet.net/api/v3/providers/pr
|
||||
with urllib.request.urlopen(req, context=ctx) as resp:
|
||||
p = json.loads(resp.read().decode())
|
||||
print(json.dumps(p, indent=2))
|
||||
|
||||
|
||||
@@ -79,3 +79,4 @@ stdin, stdout, stderr = client.exec_command(cmd)
|
||||
|
||||
print("Updated 56.conf to direct proxy and reloaded")
|
||||
client.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user