# =============================================================================
# WOOO TECH - Momo Pro System
# Kubernetes ConfigMap
# =============================================================================
apiVersion: v1
kind: ConfigMap
metadata:
  name: momo-config
  namespace: momo
data:
  # Telegram
  TELEGRAM_CHAT_IDS: '["5619078117","7664770082","8184109358"]'

  # LINE
  LINE_GROUP_ID: "Cd150747b69821dfd209f6e5aa99c84ff"

  # Email
  EMAIL_HOST: "smtp.gmail.com"
  EMAIL_PORT: "587"
  EMAIL_HOST_USER: "yingpin_chen@pchome.tw"
  EMAIL_SENDER: "yingpin_chen@pchome.tw"
  EMAIL_RECEIVER: "yingpin831@gmail.com"

  # PostgreSQL 連線設定 (config.py 使用的變數)
  POSTGRES_HOST: "momo-postgres"
  POSTGRES_PORT: "5432"
  POSTGRES_USER: "momo"
  POSTGRES_DB: "momo_analytics"

  # 應用設定
  USE_DATABASE_AUTH: "false"
  USE_POSTGRESQL: "true"
  DISABLE_AUTO_IMPORT: "false"
  USE_HTTPS: "false"
  PYTHONUNBUFFERED: "1"
  FLASK_APP: "app.py"
  DISABLE_LOGIN: "true"

  # 密碼策略
  PASSWORD_MIN_LENGTH: "4"
  PASSWORD_REQUIRE_UPPERCASE: "false"
  PASSWORD_REQUIRE_LOWERCASE: "false"
  PASSWORD_REQUIRE_DIGIT: "false"
  PASSWORD_REQUIRE_SPECIAL: "false"

  # Ollama AI 服務
  OLLAMA_HOST: "http://192.168.0.188:11434"
  OLLAMA_MODEL: "llama3:70b-instruct-q2_K"

  # Google Gemini AI 服務
  # GEMINI_API_KEY: 請在 K8s Secret 中設定
  GEMINI_MODEL: "gemini-1.5-flash"
  AI_PROVIDER: "ollama"

  # YouTube API (趨勢爬蟲)
  # YOUTUBE_API_KEY: 請在 K8s Secret 中設定

  # 外部服務連結（導航列顯示）
  METABASE_URL: "https://monitor.wooo.work/metabase"
  SUPERSET_URL: "https://monitor.wooo.work/superset"
  GRIST_URL: "https://grist.wooo.work"
