deploy-nginx: add recipe, upload scripts to /tmp, print sudo instructions

This commit is contained in:
Pontoporeia
2026-03-02 15:51:15 +01:00
parent 5e1543e9a8
commit 7208292c0e
4 changed files with 109 additions and 119 deletions

View File

@@ -48,17 +48,12 @@ just deploy-db
## Applying the nginx config
The config is in `nginx/posterg.conf`. Upload it and run the deploy script on
the server:
```bash
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
```
`scripts/deploy-server.sh` fixes ownership/permissions and installs the nginx
config from `/tmp/posterg.conf`. It must be run as root.
Uploads `nginx/posterg.conf` to the server, runs `scripts/deploy-server.sh`
(which installs it into `/etc/nginx/sites-available/posterg`), then reloads nginx.
## Managing admin users