app backend prima
This commit is contained in:
25
.env.example
Normal file
25
.env.example
Normal file
@@ -0,0 +1,25 @@
|
||||
# Database
|
||||
DATABASE_URL=postgresql://user:password@localhost:5432/terrain_monitor
|
||||
|
||||
# JWT Configuration
|
||||
SECRET_KEY=your-secret-key-change-in-production
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||||
|
||||
# MQTT Configuration
|
||||
# Nuova architettura: terrain/{cliente_id}/{sito_id}/{message_type}
|
||||
# Wildcards: + (single level), # (multi level)
|
||||
MQTT_BROKER_HOST=localhost
|
||||
MQTT_BROKER_PORT=1883
|
||||
MQTT_TOPIC_ALARMS=terrain/+/+/alarms
|
||||
MQTT_TOPIC_TELEMETRY=terrain/+/+/telemetry
|
||||
MQTT_TOPIC_STATUS=terrain/+/+/status
|
||||
MQTT_USERNAME=
|
||||
MQTT_PASSWORD=
|
||||
|
||||
# Firebase Configuration
|
||||
FIREBASE_CREDENTIALS_PATH=./firebase-credentials.json
|
||||
|
||||
# Application
|
||||
DEBUG=True
|
||||
APP_NAME=Terrain Monitor API
|
||||
Reference in New Issue
Block a user