forked from Healthy-Stellar/Healthy-Stellar-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.docker
More file actions
94 lines (80 loc) · 3.9 KB
/
Copy path.env.docker
File metadata and controls
94 lines (80 loc) · 3.9 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ---------------------------------------------------------------
# .env.docker — used exclusively by docker-compose.local.yml
#
# All service hostnames match the compose service names so they
# resolve correctly inside the Docker network.
# Do NOT use this file for production.
# ---------------------------------------------------------------
NODE_ENV=development
PORT=3000
# ── Database (postgres service) ────────────────────────────────
DB_HOST=postgres
DB_PORT=5432
DB_USERNAME=dev_user
DB_PASSWORD=dev_password
DB_NAME=healthy_stellar_dev
DB_SSL_ENABLED=false
DB_POOL_MIN=2
DB_POOL_MAX=20
DB_SYNCHRONIZE=false
# ── Redis (redis service) ──────────────────────────────────────
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# ── Email (mailhog service) ────────────────────────────────────
SMTP_HOST=mailhog
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@localhost
# ── JWT ────────────────────────────────────────────────────────
JWT_SECRET=local-dev-jwt-secret-replace-before-staging
JWT_EXPIRATION=15m
JWT_REFRESH_SECRET=local-dev-refresh-secret-replace-before-staging
JWT_REFRESH_EXPIRATION=7d
SESSION_TIMEOUT_MINUTES=60
MAX_SESSIONS_PER_USER=10
# ── Encryption (non-sensitive placeholders for local dev) ──────
ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
PHI_ENCRYPTION_KEY=local-dev-phi-key-replace-before-staging
QUEUE_HMAC_SECRET=local-dev-queue-hmac-secret-replace-before-staging
# ── Stellar ────────────────────────────────────────────────────
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
STELLAR_SECRET_KEY=your_stellar_secret_key_here
STELLAR_CONTRACT_ID=your_contract_id_here
STELLAR_FEE_BUDGET=10000000
STELLAR_MAX_RETRIES=3
# ── IPFS ───────────────────────────────────────────────────────
IPFS_API_URL=http://localhost:5001
# ── Logging ────────────────────────────────────────────────────
LOG_LEVEL=debug
SLOW_REQUEST_THRESHOLD_MS=1000
APP_LOG_RETENTION_DAYS=30
AUDIT_LOG_RETENTION_DAYS=2555
# ── Rate limiting ──────────────────────────────────────────────
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=1000
# ── CORS ───────────────────────────────────────────────────────
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001
# ── Tracing (disabled locally unless you add Jaeger) ──────────
OTEL_TRACING_ENABLED=false
OTEL_SERVICE_NAME=healthy-stellar-backend
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/traces
OTEL_SAMPLING_RATE=1.0
# ── Misc ───────────────────────────────────────────────────────
ENABLE_AUDIT_LOGGING=true
HIPAA_COMPLIANCE_ENABLED=false
ENABLE_FIELD_LEVEL_ENCRYPTION=false
METRICS_TOKEN=local-dev-metrics-token
# Database Query Performance Guardrails
REQUEST_TIMEOUT_MS=30000
DB_STATEMENT_TIMEOUT_MS=10000
DB_QUERY_TIMEOUT_MS=30000
SLOW_QUERY_THRESHOLD_MS=1000
CRITICAL_QUERY_THRESHOLD_MS=5000
DB_CONNECTION_TIMEOUT_MS=2000
DB_IDLE_TIMEOUT_MS=30000
DB_POOL_THRESHOLD=0.8
DB_SLOW_QUERY_MS=100