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:
@@ -5,6 +5,13 @@
|
||||
# Package Suite's own internal nginx container. "proxy" must already exist
|
||||
# on the host; it is not created here (external: true), since NPM's own
|
||||
# stack owns it.
|
||||
#
|
||||
# Also stays on "default" (Compose's own auto-created network for this
|
||||
# project). "proxy" is scoped to proxy-to-backend traffic only and has no
|
||||
# route to the public internet, so without "default" too, the AI draft
|
||||
# button's outbound call to api.anthropic.com fails (502: "Could not reach
|
||||
# the Anthropic API"). Landing page and tool pages still work without it,
|
||||
# since those never leave the container, which is why this was easy to miss.
|
||||
services:
|
||||
sde-meeting-toolkit:
|
||||
build: .
|
||||
@@ -20,6 +27,11 @@ services:
|
||||
- APP_PASSWORD=${APP_PASSWORD:-}
|
||||
- RATE_LIMIT_MAX=${RATE_LIMIT_MAX:-20}
|
||||
- RATE_LIMIT_WINDOW_MS=${RATE_LIMIT_WINDOW_MS:-300000}
|
||||
- LOGIN_ATTEMPT_MAX=${LOGIN_ATTEMPT_MAX:-10}
|
||||
- LOGIN_ATTEMPT_WINDOW_MS=${LOGIN_ATTEMPT_WINDOW_MS:-600000}
|
||||
- LOGIN_LOCKOUT_MS=${LOGIN_LOCKOUT_MS:-900000}
|
||||
- AUTH_LOG_FILE=${AUTH_LOG_FILE:-./data/auth-log.jsonl}
|
||||
- SIGNIN_LOG_DEBOUNCE_MS=${SIGNIN_LOG_DEBOUNCE_MS:-1800000}
|
||||
- TOKEN_LIMIT_PER_USER=${TOKEN_LIMIT_PER_USER:-0}
|
||||
- TOKEN_USAGE_FILE=${TOKEN_USAGE_FILE:-./data/token-usage.json}
|
||||
volumes:
|
||||
@@ -28,6 +40,7 @@ services:
|
||||
- ./data:/app/data
|
||||
networks:
|
||||
- proxy
|
||||
- default
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
||||
Reference in New Issue
Block a user