Fix ai fetch again
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ header('Access-Control-Allow-Origin: *');
|
|||||||
$services = [
|
$services = [
|
||||||
['id' => 'gitea', 'name' => 'Gitea', 'url' => 'https://gitea.micalis.net/', 'timeout' => 5],
|
['id' => 'gitea', 'name' => 'Gitea', 'url' => 'https://gitea.micalis.net/', 'timeout' => 5],
|
||||||
['id' => 'nextcloud', 'name' => 'Nextcloud', 'url' => 'https://nextcloud.micalis.net/', 'timeout' => 5],
|
['id' => 'nextcloud', 'name' => 'Nextcloud', 'url' => 'https://nextcloud.micalis.net/', 'timeout' => 5],
|
||||||
['id' => 'ai', 'name' => 'AI', 'url' => 'https://ai.micalis.net/login', 'timeout' => 5],
|
['id' => 'ai', 'name' => 'AI', 'url' => 'https://ai.micalis.net/', 'timeout' => 5],
|
||||||
['id' => 'jellyfin', 'name' => 'Jellyfin', 'url' => 'https://jellyfin.micalis.net/', 'timeout' => 5],
|
['id' => 'jellyfin', 'name' => 'Jellyfin', 'url' => 'https://jellyfin.micalis.net/', 'timeout' => 5],
|
||||||
['id' => 'amp', 'name' => 'AMP Game Panel', 'url' => 'https://amp.micalis.net/', 'timeout' => 5],
|
['id' => 'amp', 'name' => 'AMP Game Panel', 'url' => 'https://amp.micalis.net/', 'timeout' => 5],
|
||||||
['id' => 'fluxer', 'name' => 'Fluxer', 'url' => 'https://chat.micalis.net/', 'timeout' => 5],
|
['id' => 'fluxer', 'name' => 'Fluxer', 'url' => 'https://chat.micalis.net/', 'timeout' => 5],
|
||||||
@@ -38,7 +38,7 @@ function checkService($url, $timeout = 5) {
|
|||||||
CURLOPT_URL => $url,
|
CURLOPT_URL => $url,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_HEADER => true,
|
CURLOPT_HEADER => true,
|
||||||
CURLOPT_NOBODY => true,
|
//CURLOPT_NOBODY => true,
|
||||||
CURLOPT_TIMEOUT => $timeout,
|
CURLOPT_TIMEOUT => $timeout,
|
||||||
CURLOPT_SSL_VERIFYPEER => true,
|
CURLOPT_SSL_VERIFYPEER => true,
|
||||||
CURLOPT_FOLLOWLOCATION => true,
|
CURLOPT_FOLLOWLOCATION => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user