init commit

This commit is contained in:
Антон
2026-01-09 01:05:50 +03:00
commit c9af0a5bb1
28 changed files with 3934 additions and 0 deletions

30
UI/config.php Normal file
View File

@@ -0,0 +1,30 @@
<?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");
}
?>