mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
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.
This commit is contained in:
1 parent
87971f9c23
commit
942a93a3ad
7 files changed
+469
-227
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Simple configuration for website
|
||||
*/
|
||||
@@ -24,7 +25,8 @@ if (php_sapi_name() === 'cli-server') {
|
||||
}
|
||||
|
||||
// Simple helper function for including templates
|
||||
function include_template($name) {
|
||||
function include_template($name)
|
||||
{
|
||||
$path = APP_ROOT . '/templates/' . $name;
|
||||
if (file_exists($path)) {
|
||||
include $path;
|
||||
|
||||
Reference in new issue
Block a user