Voeg IP-uitsluitingen toe aan configuratie: IP's niet meetellen in statistieken en overslaan bij beveiliging

This commit is contained in:
2026-07-29 16:01:14 +02:00
parent 0fe5c75eae
commit 92d782e6c5
4 changed files with 34 additions and 3 deletions
+3 -1
View File
@@ -53,7 +53,8 @@ if (!file_exists($configJsonPath)) {
'geoip_mmdb_path' => '',
'geoip_api_url' => '',
'geoip_api_key' => '',
'retention_days' => 400
'retention_days' => 400,
'excluded_ips' => []
]
];
@file_put_contents($configJsonPath, json_encode($defaultConfig, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
@@ -87,6 +88,7 @@ if (file_exists($configJsonPath)) {
'geoip_api_url' => '',
'geoip_api_key' => '',
'retention_days' => 400,
'excluded_ips' => [],
],
];
foreach ($sectionDefaults as $section => $defaults) {