first commit
This commit is contained in:
51
.env.example
Normal file
51
.env.example
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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
|
||||
|
||||
# n8n API (optional - currently using client-side fetch)
|
||||
N8N_API_URL=https://n8n.example.com/webhook/location
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user