- scheduler/(__init__·jobs): 마감 처리·낙찰자 선정 잡 - quotation_crud·service: 스케줄러 연동 조회/마감 로직 - web_main·requirements·docker-compose·config: 스케줄러 기동 설정 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
# 복사해서 사용: cp config.local.toml.example config.local.toml
|
|
# 실제 config.local.toml 은 시크릿 포함이라 커밋하지 않는다(.gitignore: *.toml).
|
|
# 모든 서버는 APP_ENV=local 로 띄우며 이 파일을 읽는다.
|
|
[WebServerConfig]
|
|
server_name = "NegosiumServer"
|
|
port = 9300
|
|
process_count = 1
|
|
is_ssl = false
|
|
is_test = true
|
|
# CORS 허용 오리진(프론트). 비우면 [] (CORS 미적용). 5173=vite dev, 3300=docker 프로덕션 빌드 서빙.
|
|
cors_origins = ["http://localhost:5173", "http://127.0.0.1:5173", "http://localhost:3300", "http://127.0.0.1:3300"]
|
|
|
|
[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 = "<DB_USER>"
|
|
write_pw = "<DB_PASSWORD>"
|
|
read_host = "127.0.0.1"
|
|
read_port = 5432
|
|
read_id = "<DB_USER>"
|
|
read_pw = "<DB_PASSWORD>"
|
|
show_log = false
|
|
pool_size = 10
|
|
max_overflow = 20
|
|
sslmode = "" # 로컬: "" / 관리형 DB: "require"|"verify-ca"|"verify-full"
|
|
|
|
[JwtToken]
|
|
access_key = "<JWT_ACCESS_SECRET>"
|
|
refresh_key = "<JWT_REFRESH_SECRET>"
|
|
access_expire_min = 30
|
|
refresh_expire_day = 7
|
|
|
|
# 협상 agent(포트 9500) 접속. use_mock=true 면 agent 미연동 — 내장 mock 응답 사용(통합 테스트/로컬 기본).
|
|
[AgentConfig]
|
|
base_url = "http://127.0.0.1:9500"
|
|
timeout_sec = 10.0
|
|
use_mock = true
|