mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
Fix deploy docs: Bot Fight Mode status and probe reinstall (#167)
* Record that Bot Fight Mode is off Both docs still claimed Bot Fight Mode was enabled. It is off; the Caddy origin allowlist stays in force. Neither CI nor the on-box probe can get past it on the free plan, so re-enabling needs the changes tracked in #153. * Note that the probe must be installed to two places The timer runs /usr/local/sbin/chesstrainer-probe, not the copy under /opt/chesstrainer/src. Say so next to the install block, as the backup section already does, so a changed deploy/probe does not silently drift from what the timer runs.
This commit is contained in:
+8
-3
@@ -566,9 +566,9 @@ receive `403 Access Denied`.
|
||||
Do not let a deploy overwrite the shared Caddyfile.
|
||||
|
||||
See `docs/security.md` for the application throttle, real-IP setup and the
|
||||
Cloudflare edge controls. Production currently has Bot Fight Mode enabled and
|
||||
the free-plan login flood rule: 10 POSTs per 10 seconds per IP, blocked for 10
|
||||
seconds.
|
||||
Cloudflare edge controls. Production currently has Bot Fight Mode off (see
|
||||
#153) and the free-plan login flood rule: 10 POSTs per 10 seconds per IP,
|
||||
blocked for 10 seconds.
|
||||
|
||||
## Building a release
|
||||
|
||||
@@ -888,6 +888,11 @@ sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now chesstrainer-probe.timer
|
||||
```
|
||||
|
||||
The timer runs the installed `/usr/local/sbin/chesstrainer-probe`, not the copy
|
||||
under `/opt/chesstrainer/src`, because that tree belongs to the application
|
||||
user. When `deploy/probe` changes, install it to both places so the timer and
|
||||
the repo agree.
|
||||
|
||||
Verify:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user