-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
55 lines (45 loc) · 1.66 KB
/
Copy path.env.example
File metadata and controls
55 lines (45 loc) · 1.66 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
# =============================================================================
# Hydro-Orbit Environment Variables
# =============================================================================
# --- Database ---
# PostgreSQL connection string
DATABASE_URL=postgresql://hydro_user:hydro_password@localhost:5432/hydro_orbit
# --- Authentication ---
# Secret key for signing JWT tokens (change in production!)
JWT_SECRET=your-secret-key-change-in-production
# Token expiration time (default: 7d)
JWT_EXPIRES_IN=7d
# --- Redis ---
# Redis connection URL for caching and session management
REDIS_URL=redis://localhost:6379
# --- MQTT ---
# MQTT broker URL for device communication
MQTT_BROKER=mqtt://localhost:1883
# --- AI Engine ---
# URL of the Python AI prediction service
AI_ENGINE_URL=http://localhost:8000
# --- Frontend (Web) ---
# URL of the API server (used by Vite proxy in development)
VITE_API_URL=http://localhost:3000/api
# WebSocket URL for real-time updates
VITE_WS_URL=ws://localhost:3000
# --- Frontend (Mobile) ---
# For mobile, set these to your development machine's LAN IP
# EXPO_PUBLIC_API_URL=http://192.168.1.100:3000/api
# EXPO_PUBLIC_WS_URL=ws://192.168.1.100:3000
# --- Firmware (ESP32) ---
# WiFi credentials for the ESP32
WIFI_SSID=your-wifi-ssid
WIFI_PASSWORD=your-wifi-password
# MQTT server IP address (must be reachable from ESP32)
MQTT_SERVER=192.168.1.100
# MQTT server port (default: 1883)
MQTT_PORT=1883
# --- API Server Configuration ---
# Port the Express server listens on
API_PORT=3000
# Allowed frontend origins for CORS (comma-separated)
FRONTEND_URL=http://localhost:5173
# --- Logging ---
# Log level: debug, info, warn, error
LOG_LEVEL=info