apiVersion: v1
kind: ConfigMap
metadata:
  name: gitdata-config
  namespace: gitdataai
  labels:
    app.kubernetes.io/name: gitdata
    app.kubernetes.io/instance: gitdata
    app.kubernetes.io/version: "0.1.0"
data:
  # App Info
  APP_NAME: "gitdata"
  APP_VERSION: "0.1.0"
  APP_DOMAIN_URL: "https://gitdata.ai"
  APP_STATIC_DOMAIN: "https://static.gitdata.ai"
  APP_MEDIA_DOMAIN: "https://static.gitdata.ai"
  APP_GIT_HTTP_DOMAIN: "https://git.gitdata.ai"
  APP_AVATAR_PATH: "/data/avatar"
  APP_REPOS_ROOT: "/data/repos"
  APP_DATABASE_URL: "postgresql://gitdataai:gitdataai123@cnpg-cluster-rw.cnpg:5432/gitdataai?sslmode=disable"
  APP_DATABASE_MAX_CONNECTIONS: "100"
  APP_DATABASE_MIN_CONNECTIONS: "5"
  APP_DATABASE_IDLE_TIMEOUT: "600"
  APP_DATABASE_MAX_LIFETIME: "3600"
  APP_DATABASE_CONNECTION_TIMEOUT: "30"
  APP_DATABASE_SCHEMA_SEARCH_PATH: "public"
  APP_DATABASE_HEALTH_CHECK_INTERVAL: "30"
  APP_DATABASE_RETRY_ATTEMPTS: "3"
  APP_DATABASE_RETRY_DELAY: "1"
  APP_SESSION_SECRET: "571e53736a57f16c870b755e80dace66f7fd7f8a788c9aeaff879e5dc3c3d79a"
  APP_REDIS_URL: "redis://default:redis123@valkey-cluster.valkey-cluster.svc.cluster.local:6379"
  APP_REDIS_POOL_SIZE: "16"
  APP_REDIS_CONNECT_TIMEOUT: "5"
  APP_REDIS_ACQUIRE_TIMEOUT: "1"
  NATS_URL: "nats://nats-client.nats.svc.cluster.local:4222"
  HOOK_POOL_MAX_CONCURRENT: "100"
  HOOK_POOL_CPU_THRESHOLD: "80"
  HOOK_POOL_REDIS_LIST_PREFIX: "{hook}"
  HOOK_POOL_REDIS_LOG_CHANNEL: "hook:logs"
  HOOK_POOL_REDIS_BLOCK_TIMEOUT: "5"
  HOOK_POOL_REDIS_MAX_RETRIES: "3"
  APP_LOG_LEVEL: "info"
  APP_LOG_FORMAT: "json"
  APP_LOG_FILE_ENABLED: "false"
  APP_LOG_FILE_PATH: "/var/log/gitdata/app.log"
  APP_LOG_FILE_ROTATION: "daily"
  APP_LOG_FILE_MAX_FILES: "7"
  APP_LOG_FILE_MAX_SIZE: "100"
  APP_OTEL_ENABLED: "false"
  APP_OTEL_ENDPOINT: ""
  APP_OTEL_SERVICE_NAME: "gitdata"
  APP_OTEL_SERVICE_VERSION: "0.1.0"
  APP_SMTP_HOST: "smtp.exmail.qq.com"
  APP_SMTP_PORT: "465"
  APP_SMTP_USERNAME: "gitdata-bot@gitdata.ai"
  APP_SMTP_PASSWORD: "Dha88YLtNicGUj4G"
  APP_SMTP_FROM: "gitdata-bot@gitdata.ai"
  APP_SMTP_TLS: "true"
  APP_SMTP_TIMEOUT: "30"
  APP_SSH_DOMAIN: "git.gitdata.ai"
  APP_SSH_PORT: "22"
  APP_AI_BASIC_URL: "https://axonhub.gitdata.me/v1"
  APP_AI_API_KEY: "ah-629e2cfb5a58f6b7053cd890c6bd6c0de4537fa2f816ccc984090d022a50262e"
  APP_EMBED_MODEL_BASE_URL: "https://api.siliconflow.cn/v1"
  APP_EMBED_MODEL_API_KEY: "sk-xzehcnpedeijpgyiitcalzhlcdrmyujezubudvpacukyvzmo"
  APP_EMBED_MODEL_NAME: "BAAI/bge-m3"
  APP_EMBED_MODEL_DIMENSIONS: "1024"
  APP_QDRANT_URL: "http://qdrant.qdrant.svc.cluster.local:6333"
