- 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.
48 lines
1.9 KiB
YAML
48 lines
1.9 KiB
YAML
# Standalone compose file for this tool.
|
|
#
|
|
# Joins the "proxy" Docker network so Nginx Proxy Manager can reach this
|
|
# container by name (sde-meeting-toolkit) the same way it reaches Work
|
|
# 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: .
|
|
container_name: sde-meeting-toolkit
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5173:5173"
|
|
environment:
|
|
- MOCK_AI=${MOCK_AI:-false}
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- APP_USERS=${APP_USERS:-}
|
|
- APP_USERNAME=${APP_USERNAME:-}
|
|
- 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:
|
|
# Persists the per-user token quota file across restarts and rebuilds.
|
|
# Without this, everyone's daily usage silently resets on every deploy.
|
|
- ./data:/app/data
|
|
networks:
|
|
- proxy
|
|
- default
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|