apiVersion: v1
kind: ConfigMap
metadata:
  name: invyone-config
  namespace: invyone
data:
  SPRING_PROFILES_ACTIVE: "prod"
  SERVER_PORT: "8081"
  SPRING_DATASOURCE_URL: "jdbc:postgresql://183.99.177.40:5432/invyone?sslmode=disable"
  SPRING_DATASOURCE_USERNAME: "postgres"
  JWT_EXPIRATION: "86400000"
  FILE_UPLOAD_DIR: "./uploads"
  NODE_ENV: "production"
  NODE_PORT: "8080"
  DATABASE_URL: "postgresql://postgres:invyone0909!!@183.99.177.40:5432/invyone"
  CORS_ORIGIN: "https://solution.invyone.com"
  NEXT_PUBLIC_API_URL: "https://solution.invyone.com/api"
  NEXT_TELEMETRY_DISABLED: "1"
  # 테넌트 서브도메인 멀티테넌시: 허용 CORS 오리진 (setAllowedOriginPatterns 매칭)
  CORS_ALLOWED_ORIGINS: "https://solution.invyone.com,https://*.invyone.com,http://*.invyone.com:[*],https://*.invyone.com:[*]"
  # 프로덕션: SUPER_ADMIN 만 회사 프로비저닝 허용 (개발 모드는 false)
  TENANT_PROVISIONING_REQUIRE_SUPER_ADMIN: "true"
