mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Add a 'nginx — config' tab to the Système admin page (system.php). - Reads /etc/nginx/sites-available/posterg (live deployed config) first; falls back to nginx/posterg.conf (local reference copy) when the live path is inaccessible (e.g. in dev, or wrong permissions). - Displays a colour-coded badge: green '● Config déployée' for live, amber '⚠ Référence locale' for the fallback. - Renders the full config in the shared .log-output code block with line numbers (data-n gutter via CSS ::before) and lightweight nginx syntax colouring (comments grey, block keywords purple, directives blue). - Reuses the existing copy-to-clipboard button. - Tab routing: activeTab validation extended to accept 'nginx_config'; log pre-loading guards skip when activeTab is 'nginx_config'. - No remote execution: read-only, zero new attack surface.