mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
deploy-nginx: add recipe, upload scripts to /tmp, print sudo instructions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user