Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
48 lines (40 loc) · 1.93 KB
/
Copy path.env.example
File metadata and controls
48 lines (40 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copy this file to .env and fill in real values before running the app.
# A long random string used to sign session cookies and CSRF tokens.
# Generate one with: python -c "import secrets; print(secrets.token_urlsafe(48))"
SECRET_KEY=change-me-to-a-long-random-string
DATABASE_URL=sqlite:///./task_queue.db
# "production" enables secure (HTTPS-only) session cookies; use "development" locally.
ENVIRONMENT=development
# Owner login. Generate OWNER_PASSWORD_HASH with: uv run scripts/hash_password.py
OWNER_USERNAME=owner
OWNER_PASSWORD_HASH=
# Anti-spam
MIN_FORM_FILL_SECONDS=3.0
SUBMIT_RATE_LIMIT=5/hour
# Brute-force protection on Owner login, keyed by IP
LOGIN_RATE_LIMIT=10/minute
# Machine-facing intake endpoint (POST /intake/requests), used by the mail
# sweep to capture dated obligations. Leave blank to disable: the route is
# then never registered at all, so an unconfigured instance has no such
# path and nothing in its OpenAPI schema.
#
# This is the SHA-256 digest of the token, not the token. Generate both
# halves with: uv run scripts/generate_intake_token.py
# The raw token goes to the caller and is never stored here, so a leaked
# .env or a copied database yields nothing usable.
INTAKE_TOKEN_HASH=
INTAKE_RATE_LIMIT=10/minute
# Email notifications (optional — spec §35). Leave SMTP_USERNAME/SMTP_PASSWORD
# blank to disable entirely; nothing else below matters if they're empty.
# For Gmail: SMTP_USERNAME is the sending address, SMTP_PASSWORD must be a
# 16-character "App Password" (requires 2-Step Verification on that Google
# account) — https://myaccount.google.com/apppasswords — NOT your normal
# Gmail password.
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=
SMTP_PASSWORD=
# Where Owner-facing pings (new submission, requester responded) are sent.
# Leave blank to disable just the Owner-facing notifications while keeping
# requester-facing ones (received/accepted/declined/needs-info/completed).
OWNER_NOTIFICATION_EMAIL=