|
| 1 | +# ╔═══════════════════════════════════════════════════════════╗ |
| 2 | +# ║ Proxy Smart — Environment Variables ║ |
| 3 | +# ╚═══════════════════════════════════════════════════════════╝ |
| 4 | +# Copy this file to .env and fill in the values for your environment. |
| 5 | + |
| 6 | +# ── Core ────────────────────────────────────────────────── |
| 7 | +NODE_ENV=development # development | production |
| 8 | +PORT=8445 # HTTP listen port |
| 9 | +BASE_URL=http://localhost:8445 |
| 10 | + |
| 11 | +# ── CORS ────────────────────────────────────────────────── |
| 12 | +# Comma-separated list of allowed origins. |
| 13 | +# In development mode, localhost origins are allowed by default. |
| 14 | +# In production, only these origins (or BASE_URL) are permitted. |
| 15 | +# CORS_ORIGINS=https://app.example.com,https://admin.example.com |
| 16 | + |
| 17 | +# ── Keycloak / Auth ────────────────────────────────────── |
| 18 | +KEYCLOAK_BASE_URL=http://localhost:8080 |
| 19 | +KEYCLOAK_REALM=proxy-smart |
| 20 | +# KEYCLOAK_DOMAIN= # Public hostname (if different from KEYCLOAK_BASE_URL) |
| 21 | +# KEYCLOAK_ADMIN_CLIENT_ID=admin-service |
| 22 | +# KEYCLOAK_ADMIN_CLIENT_SECRET= # Required in production |
| 23 | + |
| 24 | +# Dev-only: set both to bypass admin role checks (never in production) |
| 25 | +# ALLOW_DEV_AUTH_BYPASS=true |
| 26 | + |
| 27 | +# ── FHIR ───────────────────────────────────────────────── |
| 28 | +FHIR_SERVER_BASE=http://localhost:8081/fhir |
| 29 | +# FHIR_SUPPORTED_VERSIONS=R4 # Comma-separated: R4,R5 |
| 30 | + |
| 31 | +# ── SMART on FHIR ─────────────────────────────────────── |
| 32 | +# SMART_CONFIG_CACHE_TTL=300000 # ms (default 5 min) |
| 33 | +# SMART_SCOPES_SUPPORTED= # Comma-separated override |
| 34 | +# SMART_CAPABILITIES= # Comma-separated override |
| 35 | + |
| 36 | +# ── AI Assistant ───────────────────────────────────────── |
| 37 | +# OPENAI_API_KEY= # Enables built-in AI assistant |
| 38 | +# AI_TIMEOUT_MS=30000 # Request timeout for AI calls |
| 39 | + |
| 40 | +# ── Consent & IAL ──────────────────────────────────────── |
| 41 | +# Managed via Admin UI → Consent & IAL tab (persisted in Keycloak). |
| 42 | +# Env vars below serve as initial defaults before first admin save. |
| 43 | +# CONSENT_ENABLED=false |
| 44 | +# CONSENT_MODE=disabled # enforce | audit-only | disabled |
| 45 | +# IAL_ENABLED=false |
| 46 | + |
| 47 | +# ── Kisi (Physical Access Control) ────────────────────── |
| 48 | +# KISI_API_KEY= |
| 49 | +# KISI_BASE_URL=https://api.kisi.io |
| 50 | +# KISI_TIMEOUT_MS=10000 |
| 51 | + |
| 52 | +# ── UniFi Access (Physical Access Control) ────────────── |
| 53 | +# UNIFI_ACCESS_HOST= |
| 54 | +# UNIFI_ACCESS_USERNAME= |
| 55 | +# UNIFI_ACCESS_PASSWORD= |
| 56 | + |
| 57 | +# ── Docker ─────────────────────────────────────────────── |
| 58 | +# DOCKER=true # Set automatically in containers |
0 commit comments