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

@@ -16,10 +16,30 @@ ANTHROPIC_API_KEY=your-anthropic-api-key-here
APP_USERS=
# Legacy single shared login. Only used if APP_USERS is blank. Everyone who
# logs in with this pair shares one identity and one token quota.
# logs in with this pair shares one identity and one token quota. Prefer
# APP_USERS instead: a shared login means the audit log below can't tell
# which real person made a given request.
APP_USERNAME=
APP_PASSWORD=
# Login lockout (brute-force protection). After this many failed logins from
# one address within the window, that address is locked out for the lockout
# period, even with the correct password. Only applies when a login is
# required (APP_USERS or APP_USERNAME/APP_PASSWORD is set). Defaults: 10
# failed attempts per 10 minutes locks out for 15 minutes.
LOGIN_ATTEMPT_MAX=10
LOGIN_ATTEMPT_WINDOW_MS=600000
LOGIN_LOCKOUT_MS=900000
# Sign-in audit log. One line per login event (timestamp, source address,
# username, success or failure) - never the password. Failures are logged
# individually; successes are logged at most once per address+user within
# SIGNIN_LOG_DEBOUNCE_MS, since Basic Auth resends credentials on every
# request and logging each one would flood the file. Persists across
# restarts if AUTH_LOG_FILE's folder is a mounted volume.
AUTH_LOG_FILE=./data/auth-log.jsonl
SIGNIN_LOG_DEBOUNCE_MS=1800000
# Optional. Caps AI draft calls per source IP, to catch a runaway script
# fast. Defaults: 20 requests per 5 minutes.
RATE_LIMIT_MAX=20