2025-06-15 13:52:26 +00:00

79 lines
2.2 KiB
YAML

# deployment/manifests/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: kakao-review-api-config
data:
# 애플리케이션 설정
APP_TITLE: "카카오맵 리뷰 분석 API"
APP_VERSION: "1.0.1"
APP_DESCRIPTION: "교육 목적 전용 - 실제 서비스 사용 금지"
# 서버 설정
HOST: "0.0.0.0"
PORT: "8000"
WORKERS: "1"
LOG_LEVEL: "info"
# API 기본값 설정 (AKS 환경에 최적화)
DEFAULT_MAX_TIME: "300"
DEFAULT_DAYS_LIMIT: "60"
MAX_DAYS_LIMIT: "365"
MIN_MAX_TIME: "60"
MAX_MAX_TIME: "600"
# 🔧 Chrome 브라우저 설정 (AKS 환경 최적화)
CHROME_OPTIONS: |
--headless=new
--no-sandbox
--disable-dev-shm-usage
--disable-gpu
--disable-software-rasterizer
--window-size=1920,1080
--disable-extensions
--disable-plugins
--disable-usb-keyboard-detect
--no-first-run
--no-default-browser-check
--disable-logging
--log-level=3
--disable-background-timer-throttling
--disable-backgrounding-occluded-windows
--disable-renderer-backgrounding
--disable-features=TranslateUI,VizDisplayCompositor
--disable-ipc-flooding-protection
--memory-pressure-off
--max_old_space_size=4096
--no-zygote
--disable-setuid-sandbox
--disable-background-networking
--disable-default-apps
--disable-sync
--metrics-recording-only
--safebrowsing-disable-auto-update
--disable-prompt-on-repost
--disable-hang-monitor
--disable-client-side-phishing-detection
--disable-component-update
--disable-domain-reliability
--user-data-dir=/tmp/chrome-user-data
--data-path=/tmp/chrome-user-data
--disk-cache-dir=/tmp/chrome-cache
--aggressive-cache-discard
--disable-web-security
--allow-running-insecure-content
--disable-blink-features=AutomationControlled
# 스크롤링 설정 (AKS 환경에 맞게 조정)
SCROLL_CHECK_INTERVAL: "5"
SCROLL_NO_CHANGE_LIMIT: "6"
SCROLL_WAIT_TIME_SHORT: "2.0"
SCROLL_WAIT_TIME_LONG: "3.0"
# 법적 경고 메시지
LEGAL_WARNING_ENABLED: "true"
CONTACT_EMAIL: "admin@example.com"
# 건강 체크 설정
HEALTH_CHECK_TIMEOUT: "10"