# 복사해서 사용: cp config.local.toml.example config.local.toml # 실제 config.local.toml 은 시크릿 포함이라 커밋하지 않는다(.gitignore: *.toml). # 모든 서버는 APP_ENV=local 로 띄우며 이 파일을 읽는다. [WebServerConfig] server_name = "O2oSiteServer" port = 9800 process_count = 1 is_ssl = false is_test = true # 관리자 프론트 오리진 — CORS 허용. 쉼표로 여러 개. # vite 는 3000 이 쓰이고 있으면 3001, 3002… 로 옮겨 뜨므로 개발 포트 대역을 함께 적어 둔다. # 운영에서는 실제 도메인 하나만 남긴다. client_url = "http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003,http://localhost:3004,http://localhost:3005" landing_url = "" # 랜딩(마케팅 사이트). 없으면 빈값 [LogConfig] print_console = true log_level = "debug" # DB Read/Write 분리. 도커 실행 시 host 는 docker-compose 의 DB_HOST 로 override. # 관리형 DB(RDS/Aurora/Azure)는 host 에 엔드포인트, sslmode="require". [MainDBConfig] db_type = "postgresql" name = "web4ai_db" write_host = "127.0.0.1" write_port = 5432 write_id = "" write_pw = "" read_host = "127.0.0.1" read_port = 5432 read_id = "" read_pw = "" show_log = false pool_size = 10 max_overflow = 20 sslmode = "" # 로컬: "" / 관리형 DB: "require"|"verify-ca"|"verify-full" [JwtToken] access_key = "" refresh_key = "" access_expire_min = 30 refresh_expire_day = 7 # 수집 파이프라인 외부 API 키. 빈값이면 해당 어댑터 비활성(서버는 그대로 뜬다). # 배포에서 환경변수로만 주입하려면 여기는 비우고 PERPLEXITY_API_KEY 등을 env 로 넘긴다. [ExternalApiConfig] perplexity_api_key = "" # 채널 URL 발견 kakao_rest_api_key = "" # 동일 업소 검증(미발급) naver_client_id = "" # 동일 업소 검증 — 네이버 지역검색 naver_client_secret = "" gemini_api_key = "" # 사진 분류 · 카피 작성 tour_api_key = "" # 공공데이터포털 전국문화축제표준데이터 일반 인증키