Keep server details out of the repo; deploy target comes from HOST or .deploy.env

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
neil 2026-11-02 01:19:28 -08:00
parent dc2b12a3c6
commit 21202c2ca3
6 changed files with 17 additions and 13 deletions

View file

@ -70,13 +70,12 @@ docker run --rm --network host -e PORT=18090 -v "$PWD/data:/data" tools:dev
## Deploy
```sh
./deploy.sh # HOST=root@<server>
HOST=root@<other> ./deploy.sh
HOST=root@<server> ./deploy.sh # or put HOST=… in .deploy.env (gitignored)
```
On the server: `/opt/tools/{compose.yml,app/,data/}`, container `tools`, listening on
`127.0.0.1:8090` only. Put a reverse proxy or tunnel connector
on the same host in front of it.
`127.0.0.1:8090` only, so put a reverse proxy or tunnel connector on the same host in front of it.
It trusts `X-Forwarded-For` from loopback only, which is what makes the per-IP paste limit work.
## Pastebin limits