-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
50 lines (43 loc) · 2.26 KB
/
.env.example
File metadata and controls
50 lines (43 loc) · 2.26 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
# Backend environment example for temporary Azure/App Service deployment
# 1) Required
OPENAI_API_KEY=your-openai-api-key
# 2) Report generation and storage (temporary, non-persistent)
# Set to "memory" to avoid storing PDFs on the server; users download once and keep locally.
STORE_REPORTS=memory
# Use OS temp on Azure/Linux so any transient writes are in /tmp (auto-cleaned on restart).
OUTPUT_DIR=/tmp
# Do not persist extracted bank transaction JSON artifacts by default.
SAVE_TX_JSON=false
# 3) Optional server settings
#PORT=5000
# Maximum upload size in MB (if you wire this into app.py)
#MAX_CONTENT_LENGTH_MB=16
# 4) Firebase Authentication
# Option A: Path to service account JSON file (recommended for local dev)
FIREBASE_SERVICE_ACCOUNT_PATH=path/to/serviceAccountKey.json
# Option B: Service account JSON as a string (for cloud deployments)
#FIREBASE_SERVICE_ACCOUNT_JSON={"type":"service_account",...}
# Option C: Just project ID (limited functionality, for development only)
#FIREBASE_PROJECT_ID=your-project-id
# 5) Razorpay Payment Gateway
# Mode: "test" or "live" (controls which key pair is used)
RAZORPAY_MODE=test
# Test mode keys (from Dashboard > Settings > API Keys in Test mode)
RAZORPAY_KEY_ID_TEST=rzp_test_xxxxxxxxxx
RAZORPAY_KEY_SECRET_TEST=your_test_secret
# Live mode keys (from Dashboard > Settings > API Keys in Live mode)
RAZORPAY_KEY_ID_LIVE=rzp_live_xxxxxxxxxx
RAZORPAY_KEY_SECRET_LIVE=your_live_secret
# Webhook secret (from Dashboard > Settings > Webhooks)
RAZORPAY_WEBHOOK_SECRET=your_webhook_secret
# Report price in paise (99900 = ₹999)
REPORT_PRICE_PAISE=99900
# Notes:
# - With STORE_REPORTS=memory, the API writes a PDF to OUTPUT_DIR, serves it once via /download-temp/<token>, then deletes the file.
# - For multi-instance deployments, one-time tokens are instance-local; fine for free/single instance. For scale-out, use sticky sessions or persistent storage.
# - Get Firebase service account from: Firebase Console > Project Settings > Service Accounts > Generate New Private Key
# - Get Razorpay keys from: Dashboard > Settings > API Keys (generate separately in Test and Live mode)
# - Set RAZORPAY_MODE=live when ready for production payments
# 6) Admin Panel
# Comma-separated list of email addresses that have admin access
ADMIN_EMAILS=admin@example.com