31 lines
698 B
PHP
31 lines
698 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Global Configuration
|
||
|
|
*/
|
||
|
|
|
||
|
|
// API Configuration
|
||
|
|
$api_host = '172.16.5.1';
|
||
|
|
$api_port = '5001';
|
||
|
|
$api_base_url = "http://{$api_host}:{$api_port}/api/v1";
|
||
|
|
|
||
|
|
$api_config = [
|
||
|
|
'stats_url' => "{$api_base_url}/stats",
|
||
|
|
'analytics_url' => "{$api_base_url}/analytics",
|
||
|
|
'certificates_url' => "{$api_base_url}/certificates",
|
||
|
|
'refresh_interval' => 30000, // 30 seconds
|
||
|
|
];
|
||
|
|
|
||
|
|
// Timezone Configuration
|
||
|
|
$local_timezone = 'Europe/Moscow';
|
||
|
|
|
||
|
|
// Apply Timezone
|
||
|
|
try {
|
||
|
|
if ($local_timezone) {
|
||
|
|
date_default_timezone_set($local_timezone);
|
||
|
|
}
|
||
|
|
} catch (Exception $e) {
|
||
|
|
date_default_timezone_set('UTC');
|
||
|
|
error_log("Invalid timezone '$local_timezone', falling back to UTC");
|
||
|
|
}
|
||
|
|
?>
|