-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (29 loc) · 2.22 KB
/
Copy path.env.example
File metadata and controls
39 lines (29 loc) · 2.22 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
# ── QuantYield Django Environment Configuration ───────────────────────────────
# Copy this file to .env and fill in your values.
# ── Core Django ───────────────────────────────────────────────────────────────
SECRET_KEY=django-insecure-replace-this-with-a-long-random-string-in-production
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
# ── Database ──────────────────────────────────────────────────────────────────
# SQLite (default for development):
DATABASE_URL=sqlite:///db.sqlite3
# PostgreSQL (recommended for production):
# DATABASE_URL=postgres://quantyield:password@localhost:5432/quantyield
# ── Cache ─────────────────────────────────────────────────────────────────────
# Local memory cache (default for development):
CACHE_URL=locmemcache://
# Redis (recommended for production):
# CACHE_URL=redis://localhost:6379/1
# ── CORS ──────────────────────────────────────────────────────────────────────
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
# ── FRED API (optional — enables live Treasury data) ─────────────────────────
# Get a free API key at https://fred.stlouisfed.org/docs/api/api_key.html
# Without this key, the app uses a representative fallback curve.
FRED_API_KEY=
# ── QuantYield Settings ────────────────────────────────────────────────────────
# Treasury curve cache TTL in seconds (default: 300 = 5 minutes)
CURVE_CACHE_TTL=300
# Maximum bonds per portfolio
MAX_PORTFOLIO_SIZE=500
# Default currency
DEFAULT_CURRENCY=USD