Fix 502 on AI draft button; restyle landing page

- docker-compose.yml: keep the container on both 'proxy' and 'default'
  networks. 'proxy' alone has no internet route, which broke the
  outbound call to api.anthropic.com once NPM routing was added.
- server.js: replace the plain landing page with one matching both
  tools' existing design (dark header, IBM Plex Sans, card layout).
- Update CHANGELOG.
This commit is contained in:
2026-09-29 17:49:15 -07:00
parent 2e8d699a36
commit 0f53a159f0
5 changed files with 223 additions and 17 deletions

View File

@@ -92,6 +92,18 @@ Use a personal or trial API key here, not the company-billed key. Keep the compa
2. Confirm the next click returns a rate-limit message instead of a normal draft or a silent failure.
3. Wait for the time window to pass, then confirm the button works again.
## Step 8b: Test the login lockout and audit log
1. Open a new private or incognito browser window, or use `curl -u tester:wrongpass http://localhost:5173/`.
2. Enter the wrong password enough times to exceed `LOGIN_ATTEMPT_MAX` (default 10) within the window.
3. Confirm the next request — even with the correct password — is refused with a 429 and a lockout message, not a login prompt.
4. Wait past `LOGIN_LOCKOUT_MS` (default 15 minutes; lower it in `.env` for a faster test), then confirm the correct password works again.
5. Run this command to view the sign-in audit log:
```
cat data/auth-log.jsonl
```
6. Confirm it lists one line per failed attempt (username tried, address, timestamp) and one line for the eventual success. No passwords appear in the file.
## Step 9 (optional): Test the per-user token quota
Skip this step for a normal test run. The quota ships off by default; this is only for confirming the feature still works if you turn it back on.