-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (42 loc) · 2.75 KB
/
.env.example
File metadata and controls
57 lines (42 loc) · 2.75 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
57
# MEDGRAPH - Drug Interaction Cascade Analyzer
# Copy to .env and adjust as needed
# See docs/deployment-guide.md for full documentation
# ── Server ───────────────────────────────────────────────────────────
MEDGRAPH_HOST=127.0.0.1
MEDGRAPH_PORT=8000
# Set to "production" to enable HSTS and strict security headers
MEDGRAPH_ENV=development
# ── Database ─────────────────────────────────────────────────────────
MEDGRAPH_DB_PATH=data/medgraph.db
# ── Authentication & Security ──────────────────────────────────────────
# REQUIRED in production. Generate with: python -c "import secrets; print(secrets.token_hex(32))"
# MEDGRAPH_JWT_SECRET=your-64-char-hex-secret-here
# Comma-separated API keys. Leave empty to disable API key auth.
# MEDGRAPH_API_KEYS=key1,key2,key3
# Comma-separated trusted reverse proxy IPs (required behind Caddy/Nginx)
# MEDGRAPH_TRUSTED_PROXIES=172.18.0.1
# Comma-separated allowed CORS origins
MEDGRAPH_CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# Rate limiting: max requests per window per client
MEDGRAPH_RATE_LIMIT=60
MEDGRAPH_RATE_WINDOW=60
# ── Observability (optional) ────────────────────────────────────────
# Sentry DSN for error tracking. Leave empty to disable.
# SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0
# Log format: "json" for production, "text" for development
MEDGRAPH_LOG_FORMAT=text
# ── Production Deployment ───────────────────────────────────────────
# Domain for Caddy TLS auto-provisioning (used in docker-compose.prod.yml)
MEDGRAPH_DOMAIN=localhost
# Grafana admin password (REQUIRED if using monitoring profile)
# GRAFANA_ADMIN_PASSWORD=your-secure-password-here
# Grafana root URL (adjust if proxied or accessed via SSH tunnel)
# GRAFANA_ROOT_URL=http://localhost:3000
# ── External Data (optional) ────────────────────────────────────────
# OpenFDA API (no key needed for <240 req/min)
OPENFDA_CACHE_DIR=data/openfda_cache
SKIP_OPENFDA=true
# DrugBank CSV enrichment (place CSV files in this directory)
DRUGBANK_DIR=data/drugbank
# ── Frontend Dev Server ─────────────────────────────────────────────
VITE_API_URL=http://localhost:8000