From c03d22ea48363b26eaae9660c6969427f3703e50 Mon Sep 17 00:00:00 2001 From: Cristiano Benassati Date: Tue, 17 Feb 2026 18:08:43 +0100 Subject: [PATCH] [FIX] Deploy fixes - Auth header passthrough, dashboard query, landing page - Add Authorization header passthrough in .htaccess for PHP-FPM - Remove invalid 'severity' column query from DashboardController - Add landing page (index.html) with feature overview Co-Authored-By: Claude Opus 4.6 --- .../controllers/DashboardController.php | 8 -- public/.htaccess | 4 + public/index.html | 87 +++++++++++++++++++ 3 files changed, 91 insertions(+), 8 deletions(-) create mode 100644 public/index.html diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php index 94c9165..6651aac 100644 --- a/application/controllers/DashboardController.php +++ b/application/controllers/DashboardController.php @@ -36,14 +36,6 @@ class DashboardController extends BaseController ); // Rischi aperti - $openRisks = Database::fetchAll( - 'SELECT severity, COUNT(*) as count - FROM risks - WHERE organization_id = ? AND status NOT IN ("closed") - GROUP BY FIELD(severity, "critical", "high", "medium", "low") -- non supportato, usiamo ORDER', - [$orgId] - ); - $riskCounts = Database::fetchOne( 'SELECT SUM(CASE WHEN inherent_risk_score >= 20 THEN 1 ELSE 0 END) as critical_high, diff --git a/public/.htaccess b/public/.htaccess index 7f0483f..2f2a4a4 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,5 +1,9 @@ RewriteEngine On +# Pass Authorization header to PHP-FPM +RewriteCond %{HTTP:Authorization} .+ +RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + # Redirect HTTP to HTTPS (production) # RewriteCond %{HTTPS} off # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..615b2d4 --- /dev/null +++ b/public/index.html @@ -0,0 +1,87 @@ + + + + + + NIS2 Agile - Piattaforma Compliance NIS2 + + + + +
+
+ + +
+ +
+
+

Compliance NIS2 semplificata

+

Piattaforma integrata per guidare la tua azienda alla conformita con la Direttiva NIS2 (EU 2022/2555). Gap analysis, risk assessment, gestione incidenti, policy e formazione - tutto in un unico strumento con AI integrata.

+ Inizia gratuitamente +
+
+ +
+
+
📋
+

Gap Analysis

+

Questionario di 80 domande sui 10 ambiti dell'Art. 21, con analisi AI delle lacune e raccomandazioni prioritizzate.

+
+
+
⚠️
+

Risk Management

+

Registro rischi con matrice 5x5, piani di trattamento, monitoraggio e suggerimenti AI basati sul settore.

+
+
+
🚨
+

Gestione Incidenti

+

Workflow completo Art. 23: early warning 24h, notifica 72h, report finale 30g con timeline e scadenze automatiche.

+
+
+
📄
+

Policy Management

+

Generazione AI di policy di sicurezza, workflow di approvazione, versioning e revisioni programmate.

+
+
+
🔗
+

Supply Chain

+

Registro fornitori, valutazione sicurezza, scoring rischio e monitoraggio requisiti contrattuali.

+
+
+
🎓
+

Formazione

+

Corsi obbligatori Art. 20, assegnazioni per ruolo, tracking completamento e compliance formativa.

+
+
+ + +
+ +