- Replace Socket.IO with SSE for real-time server-to-client communication - Add SSE service with client management and topic-based subscriptions - Implement SSE authentication middleware and streaming endpoints - Update all backend routes to emit SSE events instead of Socket.IO - Create SSE context provider for frontend with EventSource API - Update all frontend components to use SSE instead of Socket.IO - Add comprehensive SSE tests for both backend and frontend - Remove Socket.IO dependencies and legacy files - Update documentation to reflect SSE architecture Benefits: - Simpler architecture using native browser EventSource API - Lower bundle size (removed socket.io-client dependency) - Better compatibility with reverse proxies and load balancers - Reduced resource usage for Raspberry Pi deployment - Standard HTTP-based real-time communication 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: adopt-a-street-secrets
|
|
type: Opaque
|
|
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 (secrets only - non-sensitive values in configmap.yaml)
|
|
CLOUDINARY_API_KEY: "your-cloudinary-api-key"
|
|
CLOUDINARY_API_SECRET: "your-cloudinary-api-secret"
|
|
|
|
# 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
|
|
# 6. Non-sensitive config values (CLOUDINARY_CLOUD_NAME, STRIPE_PUBLISHABLE_KEY, OPENAI_MODEL)
|
|
# are in configmap.yaml
|