feat: add diagnostic and management scripts for DNS, NPM, and cluster infrastructure
This commit is contained in:
13
scripts/test_gotify.py
Normal file
13
scripts/test_gotify.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import urllib.request
|
||||
import ssl
|
||||
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.check_hostname = False
|
||||
ctx.verify_mode = ssl.CERT_NONE
|
||||
|
||||
try:
|
||||
with urllib.request.urlopen("https://gotify.snarfnet.net/version", context=ctx, timeout=5) as resp:
|
||||
print("Gotify version:", resp.read().decode().strip())
|
||||
except Exception as e:
|
||||
print("Gotify error:", e)
|
||||
|
||||
Reference in New Issue
Block a user