|
@@ -47,21 +47,6 @@ foreach ($containers as $container => $container_info) {
|
|
// get mailcow data
|
|
// get mailcow data
|
|
$hostname = getenv('MAILCOW_HOSTNAME');
|
|
$hostname = getenv('MAILCOW_HOSTNAME');
|
|
$timezone = getenv('TZ');
|
|
$timezone = getenv('TZ');
|
|
-// get public ips
|
|
|
|
-$curl = curl_init();
|
|
|
|
-curl_setopt($curl, CURLOPT_URL, 'http://ipv4.mailcow.email');
|
|
|
|
-curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
|
|
|
-curl_setopt($curl, CURLOPT_POST, 0);
|
|
|
|
-$ipv4 = curl_exec($curl);
|
|
|
|
-curl_setopt($curl, CURLOPT_URL, 'http://ipv6.mailcow.email');
|
|
|
|
-curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
|
|
|
-curl_setopt($curl, CURLOPT_POST, 0);
|
|
|
|
-$ipv6 = curl_exec($curl);
|
|
|
|
-$ips = array(
|
|
|
|
- "ipv4" => $ipv4,
|
|
|
|
- "ipv6" => $ipv6
|
|
|
|
-);
|
|
|
|
-curl_close($curl);
|
|
|
|
|
|
|
|
$template = 'debug.twig';
|
|
$template = 'debug.twig';
|
|
$template_data = [
|
|
$template_data = [
|
|
@@ -70,7 +55,6 @@ $template_data = [
|
|
'hostname' => $hostname,
|
|
'hostname' => $hostname,
|
|
'timezone' => $timezone,
|
|
'timezone' => $timezone,
|
|
'license_guid' => license('guid'),
|
|
'license_guid' => license('guid'),
|
|
- 'ips' => $ips,
|
|
|
|
'solr_status' => $solr_status,
|
|
'solr_status' => $solr_status,
|
|
'solr_uptime' => round($solr_status['status']['dovecot-fts']['uptime'] / 1000 / 60 / 60),
|
|
'solr_uptime' => round($solr_status['status']['dovecot-fts']['uptime'] / 1000 / 60 / 60),
|
|
'clamd_status' => $clamd_status,
|
|
'clamd_status' => $clamd_status,
|