Set all requests to ssl
This commit is contained in:
@@ -17,7 +17,7 @@ from datetime import datetime
|
||||
|
||||
print("overview_callbacks.py geladen")
|
||||
|
||||
API_BASE_URL = os.getenv("API_BASE_URL", "http://192.168.43.100")
|
||||
API_BASE_URL = os.getenv("API_BASE_URL", "https://192.168.43.100")
|
||||
|
||||
mqtt_thread_started = False
|
||||
SCREENSHOT_DIR = "received-screenshots"
|
||||
@@ -40,7 +40,11 @@ def get_latest_screenshot(client_uuid):
|
||||
|
||||
def fetch_clients():
|
||||
try:
|
||||
resp = requests.get(f"{API_BASE_URL}/api/clients")
|
||||
verify_ssl = True if ENV == "production" else False
|
||||
resp = requests.get(
|
||||
f"{API_BASE_URL}/api/clients",
|
||||
verify=verify_ssl
|
||||
)
|
||||
resp.raise_for_status()
|
||||
return resp.json()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user