-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (49 loc) · 2.16 KB
/
Copy path.env.example
File metadata and controls
56 lines (49 loc) · 2.16 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
49
50
51
52
53
54
55
56
# Copy to .env and fill in real values. Do NOT commit .env (only this example).
# These fields initialize the Postgres container and are the single source of truth
# for connection settings. The application builds its connection URL from them in code
# (driver prefix +asyncpg / +psycopg chosen there — see README -> "Open Decision").
ENVIRONMENT=dev
POSTGRES_USER=bp
POSTGRES_PASSWORD=bp
POSTGRES_DB=bp_tracker
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
JWT_SECRET=change-me-to-a-long-random-value
# SMTP configuration (e.g. for magic links). Use Gmail App Passwords if testing with Gmail.
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=your-email@example.com
SMTP_PASSWORD=your-app-password
SMTP_FROM=noreply@example.com
SMTP_STARTTLS=True
SMTP_TIMEOUT=10
# Magic link configuration
MAGIC_LINK_BASE_URL=http://localhost:3000/auth/confirm
MAGIC_LINK_TTL_MINUTES=15
MAGIC_LINK_TOKEN_BYTES=32
# WebAuthn Relying Party ID (domain name)
WEBAUTHN_RP_ID=localhost
# WebAuthn Relying Party Name
WEBAUTHN_RP_NAME="BP Tracker"
# Allowed WebAuthn origins, comma-separated. Must include the web frontend origin and, once the
# Android client is in use, its apk-key-hash origin (obtained from the app signing certificate).
# Example: WEBAUTHN_ORIGINS=http://localhost:5173 android:apk-key-hash:AbCdEf...
WEBAUTHN_ORIGINS=http://localhost:5173
# TTL for challenges in minutes
WEBAUTHN_CHALLENGE_TTL_MINUTES=5
# Allowed emails for account creation (comma-separated list)
# Example: ALLOWED_EMAILS=user1@example.com,user2@example.com
ALLOWED_EMAILS=user@example.com
# The template Google Sheets URL for importing exported blood pressure CSV data
EXPORT_SHEETS_TEMPLATE_URL=https://docs.google.com/spreadsheets/d/placeholder-id-here/copy
# Gemini API key for photo recognition fallback (required, no default)
GEMINI_API_KEY=your-gemini-api-key-here
# Gemini model name used for image recognition
GEMINI_MODEL=gemini-2.0-flash
# Timeout in seconds for requests to the Gemini API
GEMINI_TIMEOUT_SECONDS=30
# Maximum file size in bytes allowed for uploaded images for analysis
ANALYZE_MAX_FILE_BYTES=10485760
# Production-only variables (applies to compose.prod.yaml only)
POSTGRES_HOST_PORT=5437
APP_HOST_PORT=8001