forked from Dev-AdeTutu/Stellar-Solar-Grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (23 loc) · 1.69 KB
/
Copy path.env.example
File metadata and controls
32 lines (23 loc) · 1.69 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
# Stellar SolarGrid - Docker Compose Environment Variables
# ── Stellar Contract ──────────────────────────────────────────────────────────
# The deployed Soroban smart contract ID
CONTRACT_ID=YOUR_CONTRACT_ID_HERE
# Stellar network to connect to (testnet | mainnet)
STELLAR_NETWORK=testnet
# ── Admin Keypair ─────────────────────────────────────────────────────────────
# Secret key used to sign on-chain transactions — NEVER commit the real value
ADMIN_SECRET_KEY=YOUR_ADMIN_SECRET_KEY_HERE
# Public key of the admin account (used by GET /api/stats for revenue lookup)
ADMIN_ADDRESS=YOUR_ADMIN_PUBLIC_KEY_HERE
# API key for admin-only backend endpoints
ADMIN_API_KEY=change-me-in-production
# ── MQTT ──────────────────────────────────────────────────────────────────────
# MQTT broker URL used by backend and IoT bridge
MQTT_BROKER=mqtt://mqtt:1883
# Units threshold below which a low-balance webhook is triggered
LOW_BALANCE_THRESHOLD=1000000
# ── Frontend build args ───────────────────────────────────────────────────────
# Contract ID exposed to the Vite frontend build
VITE_CONTRACT_ID=YOUR_CONTRACT_ID_HERE
# Frontend origin used by backend CORS (change for production)
FRONTEND_ORIGIN=http://localhost:5173