mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
Consolidate nginx docs and scripts, update paths
This commit is contained in:
14
README.md
14
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user