Add login gate, rate limiting, and container deploy files for company-wide use

This commit is contained in:
2026-08-20 15:06:37 -07:00
parent e5c01003f8
commit e77cd64d88
6 changed files with 123 additions and 1 deletions

View File

@@ -1,2 +1,14 @@
## Copy this file to .env and fill in your key. Do not commit .env.
## Copy this file to .env and fill in real values. Do not commit .env.
# Required for the AI draft button.
ANTHROPIC_API_KEY=your-anthropic-api-key-here
# Required for company deployment. Leave both blank for solo local use with
# no login prompt. Set both to require a login for anyone reaching this tool.
APP_USERNAME=
APP_PASSWORD=
# Optional. Caps AI draft calls per source IP, to limit cost from the shared
# ANTHROPIC_API_KEY. Defaults: 20 requests per 5 minutes.
RATE_LIMIT_MAX=20
RATE_LIMIT_WINDOW_MS=300000