summaryrefslogtreecommitdiff
path: root/classes/Config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-25 17:53:49 +0300
committerAndrew Dolgov <[email protected]>2023-10-25 17:53:49 +0300
commit31812726190407ae52f673b9c3184f5348c2fcc1 (patch)
tree1ef468769e7589a5d55eb402468d57229f3aa96a /classes/Config.php
parent865ecc87963dc3b26e66296616eef2a1cc41ac3f (diff)
add healthcheck public method, map by default to /healthz
Diffstat (limited to 'classes/Config.php')
-rw-r--r--classes/Config.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/Config.php b/classes/Config.php
index 72d6c5106..2c2cd4d65 100644
--- a/classes/Config.php
+++ b/classes/Config.php
@@ -643,7 +643,9 @@ class Config {
}
}
- if (count($errors) > 0 && php_sapi_name() != "cli") { ?>
+ if (count($errors) > 0 && php_sapi_name() != "cli") {
+ http_response_code(503); ?>
+
<!DOCTYPE html>
<html>
<head>