mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-24 06:31:02 +01:00
Test
This commit is contained in:
@@ -122,7 +122,7 @@ def startup_checks():
|
||||
|
||||
# Check 1: See if the Headscale server is reachable:
|
||||
reachable = False
|
||||
response = requests.get(str(url)+"/api/v1/")
|
||||
response = requests.get(str(url)+"/health")
|
||||
log.warning("STARTUP CHECK: Response: "+str(response.status_code))
|
||||
if response.status_code == 200:
|
||||
reachable = True
|
||||
@@ -147,7 +147,7 @@ def startup_checks():
|
||||
message = """
|
||||
<p>Your headscale server is either unreachable or not properly configured.
|
||||
Please ensure your configuration is correct (Check for 200 status on
|
||||
"""+url+"""/api/v1 failed.)</p>
|
||||
"""+url+"""/api/v1 failed. Response: """+response.status_code+""".)</p>
|
||||
"""
|
||||
messageHTML += format_error_message("Error", "Headscale unreachable", message)
|
||||
if not writable:
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
<body>
|
||||
<div class="container"><br><br><br>
|
||||
{{ ERROR_MESSAGE }}
|
||||
<br>
|
||||
<center>Click <a href="overview.html">here</a> to retry.</center>
|
||||
</div>
|
||||
<!-- Modals -->
|
||||
<div id="generic_modal" class="modal">
|
||||
|
||||
Reference in New Issue
Block a user