# 복사해서 사용: cp config.local.toml.example config.local.toml # 실제 config.local.toml 은 시크릿 포함이라 커밋하지 않는다(.gitignore: *.toml). # 모든 서버는 APP_ENV=local 로 띄우며 이 파일을 읽는다. [WebServerConfig] server_name = "NegodataServer" port = 9400 process_count = 1 is_ssl = false is_test = true client_url = "http://localhost:3000" # CORS 허용 nego_chat_url = "http://localhost:3300" # 공급사 협상 프론트 base(세션 chat 실행 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 = "negosium_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" # 인터넷 최저가 검색(LPS) 결과 DB — 읽기전용(price_history 동기화 배치). # name 을 비우면 LPS 연동 비활성(엔진 미등록·배치 스킵). 도커는 LPS_DB_HOST 등 env 로 override. [LpsDBConfig] db_type = "postgresql" name = "lps_db" read_host = "127.0.0.1" read_port = 5432 read_id = "postgres" read_pw = "postgres" show_log = false pool_size = 2 max_overflow = 2 sslmode = "" [JwtToken] access_key = "" refresh_key = "" access_expire_min = 30 refresh_expire_day = 7 # 상품 이미지 업로드 대상(Azure Blob Storage). # infinith 와 동일 계정/컨테이너 SAS 를 그대로 복사해 쓰고, blob_root 로 디렉터리만 분리한다. # 값 출처: o2o-infinith-backend/.env 의 AZURE_BLOB_BASE_URL / AZURE_BLOB_SAS_TOKEN [StorageConfig] azure_blob_base_url = "" azure_blob_sas_token = "" blob_root = "negodata" max_image_mb = 4