feat: complete MongoDB to CouchDB migration
- Migrate Report model to CouchDB with embedded street/user data - Migrate UserBadge model to CouchDB with badge population - Update all remaining routes (reports, users, badges, payments) to use CouchDB - Add CouchDB health check and graceful shutdown to server.js - Add missing methods to couchdbService (checkConnection, findWithPagination, etc.) - Update Kubernetes deployment manifests for CouchDB support - Add comprehensive CouchDB setup documentation All core functionality now uses CouchDB as primary database while maintaining MongoDB for backward compatibility during transition period. 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
@@ -8,6 +8,11 @@ stringData:
|
||||
# JWT Secret - CHANGE THIS IN PRODUCTION!
|
||||
JWT_SECRET: "your-super-secret-jwt-key-change-in-production"
|
||||
|
||||
# CouchDB Configuration
|
||||
COUCHDB_USER: "admin" # Change this in production
|
||||
COUCHDB_PASSWORD: "admin" # Change this in production
|
||||
COUCHDB_SECRET: "some-random-secret-string" # Change this in production
|
||||
|
||||
# Cloudinary Configuration
|
||||
CLOUDINARY_CLOUD_NAME: "your-cloudinary-cloud-name"
|
||||
CLOUDINARY_API_KEY: "your-cloudinary-api-key"
|
||||
@@ -16,9 +21,13 @@ stringData:
|
||||
# Stripe Configuration (optional - currently mocked)
|
||||
# STRIPE_SECRET_KEY: "your-stripe-secret-key"
|
||||
|
||||
# OpenAI Configuration (optional - for AI features)
|
||||
# OPENAI_API_KEY: "your-openai-api-key"
|
||||
|
||||
---
|
||||
# IMPORTANT:
|
||||
# 1. Copy this file to secrets.yaml
|
||||
# 2. Replace all placeholder values with real secrets
|
||||
# 3. DO NOT commit secrets.yaml to version control
|
||||
# 4. Add secrets.yaml to .gitignore
|
||||
# 5. Generate strong passwords for CouchDB using: openssl rand -base64 32
|
||||
|
||||
Reference in New Issue
Block a user