feat: add homelab deployment configs, documentation, and automation scripts
This commit is contained in:
15
scripts/check_homepage_routes.py
Normal file
15
scripts/check_homepage_routes.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import requests
|
||||
import urllib3
|
||||
urllib3.disable_warnings()
|
||||
|
||||
s = requests.Session()
|
||||
r = s.get('https://homepage.snarfnet.net', verify=False)
|
||||
print("Page length:", len(r.text))
|
||||
import re
|
||||
apis = re.findall(r'/api/[a-zA-Z0-9_/]+', r.text)
|
||||
print("Found API routes:", set(apis))
|
||||
|
||||
# Also test hitting the Home Assistant custom widget api if any
|
||||
# In Homepage, the widget endpoint is /api/widgets/homeassistant or similar or /api/services/...
|
||||
# Let's check pod files to see what routes exist
|
||||
|
||||
Reference in New Issue
Block a user