Consolidate nginx docs and scripts, update paths

This commit is contained in:
Pontoporeia
2026-04-15 10:58:49 +02:00
parent 3cd96ed28a
commit 507f3eb704
23 changed files with 645 additions and 2256 deletions

View File

@@ -34,7 +34,9 @@ posterg/
│ ├── deploy-server.sh # Run on server with sudo to apply nginx config
│ └── manage-admin-users.sh # Run on server with sudo to manage htpasswd
└── nginx/ # nginx config and reference files
── posterg.conf
── posterg.conf
├── scripts/ # Server setup scripts (password, PHP SQLite)
└── docs/ # Documentation
```
Uploaded files (PDFs, covers) live in `storage/` — outside the webroot — and are
@@ -73,19 +75,19 @@ sudo chmod 775 /var/www/posterg
exit
```
Then deploy once, copy nginx config, and apply:
Then deploy once and apply nginx config:
```bash
just deploy
rsync -v nginx/posterg.conf posterg:/tmp/posterg.conf
ssh posterg "sudo bash /var/www/posterg/scripts/deploy-server.sh"
ssh posterg "sudo systemctl reload nginx"
just deploy-nginx
```
### Admin users (htpasswd)
```bash
ssh posterg "sudo bash /var/www/posterg/scripts/manage-admin-users.sh"
just manage-admin-users
# Then on server:
ssh posterg "sudo bash /tmp/manage-admin-users.sh"
```
## Security notes