Add login gate, rate limiting, and container deploy files for company-wide use
This commit is contained in:
14
.env.example
14
.env.example
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user