apiVersion: v1
kind: ConfigMap
metadata:
  name: chatapp-config
  namespace: chatapp
data:
  NODE_ENV: "production"
  API_PORT: "3010"
  WS_PORT: "3002"
  WEB_PORT: "3001"
  REDIS_URL: "redis://redis:6379"
  MEILI_URL: "http://meilisearch:7700"
  MINIO_ENDPOINT: "minio"
  MINIO_PORT: "9000"
  MINIO_BUCKET: "chatapp-files"
  MINIO_USE_SSL: "false"
  CORS_ORIGINS: "https://app.chatapp.com"
---
apiVersion: v1
kind: Secret
metadata:
  name: chatapp-secrets
  namespace: chatapp
type: Opaque
stringData:
  DATABASE_URL: "postgresql://chatapp:CHANGE_ME@postgres:5432/chatapp"
  REDIS_URL: "redis://redis:6379"
  JWT_SECRET: "CHANGE_ME_IN_PRODUCTION"
  MINIO_ACCESS_KEY: "chatapp"
  MINIO_SECRET_KEY: "CHANGE_ME"
  MEILI_MASTER_KEY: "CHANGE_ME"