Files
sde-meeting-toolkit/.env.example

36 lines
1.4 KiB
Plaintext

## Copy this file to .env and fill in real values. Do not commit .env.
# Set to true to test the AI draft button with no API key and no cost.
# Returns a canned draft instead of calling Anthropic. Leave unset or false
# for real drafts.
MOCK_AI=false
# Required for the AI draft button, unless MOCK_AI=true.
ANTHROPIC_API_KEY=your-anthropic-api-key-here
# Named users. Comma-separated user:password pairs. Each name doubles as the
# identity used for the per-user token quota below.
# Example: APP_USERS=alice:pass1,bob:pass2,carol:pass3
# Leave blank for solo local use with no login prompt (usage is then tracked
# under the identity "local").
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.
APP_USERNAME=
APP_PASSWORD=
# Optional. Caps AI draft calls per source IP, to catch a runaway script
# fast. Defaults: 20 requests per 5 minutes.
RATE_LIMIT_MAX=20
RATE_LIMIT_WINDOW_MS=300000
# On the back burner: off by default. Caps combined input+output tokens per
# named user, per UTC calendar day. Leave at 0 (or unset) for unlimited,
# which also skips writing TOKEN_USAGE_FILE. Set a positive number (for
# example 50000, roughly 100-200 AI drafts with this tool's prompt size) to
# turn it back on. Usage then persists across restarts if TOKEN_USAGE_FILE's
# folder is a mounted volume.
TOKEN_LIMIT_PER_USER=0
TOKEN_USAGE_FILE=./data/token-usage.json