full server dashboard working
This commit is contained in:
@ -56,10 +56,11 @@
|
||||
}
|
||||
$api_settings[$key] = $value;
|
||||
}
|
||||
$dockerGateway = trim($api_settings['docker_gateway'], "\"'") ?? null;
|
||||
$api_bind_ip = trim($api_settings['api_bind_ip'], "\"'") ?? null;
|
||||
$customApiPort = trim($api_settings['custom_api_port'], "\"'") ?? null;
|
||||
# load API data
|
||||
$apiUrl = 'http://'.$dockerGateway.':'.$customApiPort.'/php_summary';
|
||||
$apiUrl = 'http://'.$api_bind_ip.':'.$customApiPort.'/php_summary';
|
||||
echo "<!-- apiUrl - ".$apiUrl." -->";
|
||||
$context = stream_context_create([
|
||||
'http' => [
|
||||
'timeout' => 5, // seconds
|
||||
|
||||
Reference in New Issue
Block a user