Files
location-mqtt-tracker-app/.env.example
2025-11-24 20:33:15 +00:00

49 lines
1.4 KiB
Plaintext

# Authentication
# Generate with: openssl rand -base64 32
AUTH_SECRET=your-secret-key-here
# NextAuth URL
# Development
NEXTAUTH_URL=http://localhost:3000
# Production (change to your domain)
# NEXTAUTH_URL=https://your-domain.com
# SMTP Configuration (Fallback when DB config is empty)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM_EMAIL=noreply@example.com
SMTP_FROM_NAME=Location Tracker
# Encryption for SMTP passwords in database
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=your-32-byte-hex-key-here
# Push Notifications (future feature)
# VAPID_PUBLIC_KEY=
# VAPID_PRIVATE_KEY=
# ======================================
# MQTT Configuration
# ======================================
# MQTT Broker URL
# Development (local): mqtt://localhost:1883
# Docker Compose: mqtt://mosquitto:1883
# Production: mqtt://your-mqtt-broker:1883
MQTT_BROKER_URL=mqtt://mosquitto:1883
# MQTT Admin Credentials (für MQTT Subscriber und Password File Generation)
MQTT_ADMIN_USERNAME=admin
MQTT_ADMIN_PASSWORD=admin
# Mosquitto Configuration File Paths
# Diese Pfade müssen vom App-Container aus erreichbar sein
MOSQUITTO_PASSWORD_FILE=/mosquitto/config/password.txt
MOSQUITTO_ACL_FILE=/mosquitto/config/acl.txt
# Mosquitto Container Name (für Config Reload via Docker)
MOSQUITTO_CONTAINER_NAME=mosquitto