Théophile Gervreau-Mercier
|
942a93a3ad
|
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.
|
2026-02-12 12:20:31 +01:00 |
|
Théophile Gervreau-Mercier
|
7fca85d1c1
|
refactor: rename database → storage
More semantically accurate: contains SQLite files, schema, fixtures, test data.
Updated all references in code, scripts, docs.
|
2026-02-12 12:12:58 +01:00 |
|
Théophile Gervreau-Mercier
|
4bbbc58e24
|
Fix admin CSS not loading and quirks mode issues
Fixed multiple issues in admin panel:
1. CSS path: modern-normalize.css → modern-normalize.min.css
(File is actually named .min.css)
2. Icon path: assets/icon.svg → /assets/admin_favicon.svg
(Was relative, now absolute; correct filename)
3. Navigation: /admin/list.php → /admin/
(list.php was renamed to index.php)
4. Short PHP tags: <? → <?php
(Better compatibility, some servers don't enable short_open_tag)
5. Quirks mode warning was due to CSS not loading, not DOCTYPE
(DOCTYPE was already present)
Files modified:
- public/admin/inc/head.php (main fixes)
- public/admin/index.php (short tags)
- public/admin/add.php (short tags)
- public/admin/import.php (short tags)
Need to redeploy for production: just deploy
|
2026-02-06 13:26:24 +01:00 |
|