From 942a93a3ad14f1c13d9e6c6697850a5ba44244e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Gervreau-Mercier?= Date: Thu, 12 Feb 2026 12:20:31 +0100 Subject: [PATCH] refactor: update nginx config for new structure - Updated posterg.conf with new directory structure - Document root: /var/www/posterg/public - Explicitly deny access to: /src, /templates, /config, /storage, /tests, /scripts, /docs - Added structure diagram in comments - Updated deploy scripts security checks - Replaced outdated posterg.conf.reference All non-public directories outside webroot for security. Defense-in-depth: explicit deny rules even though paths outside /public. --- config/bootstrap.php | 4 +- nginx/README.md | 10 +- nginx/deploy-production-new.sh | 8 +- nginx/deploy-production.sh | 4 +- nginx/posterg.conf | 99 +++++++---- nginx/posterg.conf.reference | 288 +++++++++++-------------------- nginx/posterg.conf.reference.old | 283 ++++++++++++++++++++++++++++++ 7 files changed, 469 insertions(+), 227 deletions(-) create mode 100644 nginx/posterg.conf.reference.old diff --git a/config/bootstrap.php b/config/bootstrap.php index 82de8a5..75a60bb 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -1,4 +1,5 @@