Skip to content

Commit 4ef63c0

Browse files
authored
External Services
External services monitoring was an experimental feature that will be spun off into a separate web application. Removed all related code and UI elements from the admin control panel until the new standalone service is ready for release.
1 parent 4af689e commit 4ef63c0

21 files changed

Lines changed: 142 additions & 5496 deletions

.codacy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
exclude_paths:
66
# Documentation files with intentional long lines
7-
- 'config/var/www/admin/control-panel/external-services/README.md'
87
- '.codacy-review-notes.md'
98
# WordPress core files - not under our control
109
- 'config/var/www/wordpress/wp-config.php'
@@ -16,7 +15,6 @@ engines:
1615
enabled: true
1716
exclude_patterns:
1817
# API endpoint files use intentional patterns for HTTP responses
19-
- 'config/var/www/admin/control-panel/external-services/external-services-api.php'
2018
- 'config/var/www/admin/control-panel/api.php'
2119
configuration:
2220
# Use PSR-12 standard but allow API endpoint patterns
@@ -39,7 +37,6 @@ engines:
3937
enabled: true
4038
exclude_patterns:
4139
# API files have intentional patterns
42-
- 'config/var/www/admin/control-panel/external-services/external-services-api.php'
4340
- 'config/var/www/admin/control-panel/api.php'
4441
configuration:
4542
rulesets:
@@ -58,7 +55,6 @@ engines:
5855
enabled: true
5956
exclude_patterns:
6057
# API endpoint files require $_GET, header(), echo for functionality
61-
- 'config/var/www/admin/control-panel/external-services/external-services-api.php'
6258
- 'config/var/www/admin/control-panel/api.php'
6359

6460
# Pattern-Specific Suppressions
@@ -87,7 +83,6 @@ patterns:
8783
# Suppress direct superglobal access when properly validated
8884
- pattern_id: PHP_DirectSuperglobalAccess
8985
exclude_paths:
90-
- 'config/var/www/admin/control-panel/external-services/external-services-api.php'
9186
- 'config/var/www/admin/control-panel/api.php'
9287
reason: "Input validated against strict whitelists and sanitized before use"
9388

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ All notable changes to EngineScript will be documented in this file.
44

55
Changes are organized by date, with the most recent changes listed first.
66

7+
## 2026-04-29
8+
9+
### ⚡ NGINX: EARLY HINTS PASS-THROUGH SUPPORT
10+
11+
- Added an Early Hints eligibility map to `config/etc/nginx/globals/map-cache.conf`:
12+
- `map $http_sec_fetch_mode $es_early_hints`
13+
- Enables pass-through only for `navigate` requests on HTTP/2 or HTTP/3 (`$http2$http3`).
14+
- Enabled `early_hints $es_early_hints;` in `config/etc/nginx/globals/php-fpm.conf` so upstream 103 responses can be forwarded for dynamic WordPress/PHP requests.
15+
- Kept behavior safe-by-default for incompatible clients by leaving the map default empty.
16+
17+
### 🧹 ADMIN CONTROL PANEL: EXTERNAL SERVICES REMOVAL
18+
19+
- External services monitoring was an experimental feature that will be spun off into a separate web application. Removed all related code and UI elements from the admin control panel until the new standalone service is ready for release.
20+
- Removed the External Services tab from the admin control panel UI.
21+
- Removed External Services frontend module files and lazy-load wiring.
22+
- Removed External Services API routes and controller bindings.
23+
- Kept Uptime monitoring and the rest of the admin control panel behavior unchanged.
24+
25+
726
## 2026-04-22
827

928
### ♻️ REFACTOR: PHP 8.2–8.4 MODERNISATION OF EXTERNAL SERVICES API AND CONTROLLERS

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ EngineScript includes a comprehensive web-based admin control panel accessible a
169169
- Uptime monitoring and reporting for all WordPress sites
170170
- Web-based file management with Tiny File Manager
171171
- Quick access to common server management tasks and tools
172-
- Remote uptime monitoring for third-party services and APIs
173172

174173
### Software EngineScript Utilizes
175174

config/var/www/admin/control-panel/api.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,6 @@ function validateCsrfToken() {
226226
$router->register('/cache/clear', 'CacheController', 'clear');
227227
$router->register('/cache/status', 'CacheController', 'getStatus');
228228

229-
// External services endpoints
230-
$router->register('/external/plugin', 'ExternalServicesController', 'getPluginInfo');
231-
$router->register('/external/cloudflare/status', 'ExternalServicesController', 'getCloudflareStatus');
232-
$router->register('/external-services/config', 'ExternalServicesController', 'getConfig');
233-
$router->register('/external-services/feed', 'ExternalServicesController', 'getFeed');
234-
235229
// Legacy batch endpoint (kept for backward compatibility)
236230
$router->register('/batch', 'BatchController', 'handle');
237231

config/var/www/admin/control-panel/controllers/BaseController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ public function __construct()
9999
'/monitoring/uptime' => 60, // 1 minute
100100
'/monitoring/uptime/monitors' => 60, // 1 minute
101101
'/cache/status' => 30, // 30 seconds - cache status updates frequently
102-
'/external-services/config' => 300, // 5 minutes - config rarely changes
103-
'/external-services/feed' => 180, // 3 minutes - external feeds
104102
];
105103

106104
/**

0 commit comments

Comments
 (0)