WellNuo/backend/.env.example
Sergei 1dd7eb8289 Remove hardcoded credentials and use environment variables
- Remove hardcoded database credentials from all scripts
- Remove hardcoded Legacy API tokens from backend scripts
- Remove hardcoded MQTT credentials from mqtt-test.js
- Update backend/.env.example with DB_HOST, DB_USER, DB_PASSWORD, DB_NAME
- Update backend/.env.example with LEGACY_API_TOKEN and MQTT credentials
- Add dotenv config to all scripts requiring credentials
- Create comprehensive documentation:
  - scripts/README.md - Root scripts usage
  - backend/scripts/README.md - Backend scripts documentation
  - MQTT_TESTING.md - MQTT testing guide
  - SECURITY_CREDENTIALS_CLEANUP.md - Security changes summary

All scripts now read credentials from backend/.env instead of hardcoded values.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-29 12:13:32 -08:00

51 lines
1.1 KiB
Plaintext

# Supabase
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-key
SUPABASE_DB_PASSWORD=your-db-password
# Database (PostgreSQL)
DB_HOST=your-db-host
DB_PORT=5432
DB_NAME=your-db-name
DB_USER=your-db-user
DB_PASSWORD=your-db-password
# JWT
JWT_SECRET=your-jwt-secret
JWT_EXPIRES_IN=7d
# Server
PORT=3010
NODE_ENV=production
# Brevo Email
BREVO_API_KEY=your-brevo-key
BREVO_SENDER_EMAIL=noreply@daterabbit.com
BREVO_SENDER_NAME=WellNuo
# Frontend URL (for password reset links)
FRONTEND_URL=https://wellnuo.smartlaunchhub.com
# Stripe
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
# Stripe Products & Prices
STRIPE_PRICE_STARTER_KIT=price_xxx
STRIPE_PRICE_PREMIUM=price_xxx
STRIPE_PRODUCT_STARTER_KIT=prod_xxx
STRIPE_PRODUCT_PREMIUM=prod_xxx
# Admin
ADMIN_API_KEY=your-admin-api-key
# Legacy API (eluxnetworks.net)
LEGACY_API_USERNAME=your-username
LEGACY_API_TOKEN=your-jwt-token
# MQTT Configuration
MQTT_BROKER=mqtt://mqtt.eluxnetworks.net:1883
MQTT_USER=your-mqtt-username
MQTT_PASSWORD=your-mqtt-password