config.local.toml 설정 단일화 .
This commit is contained in:
1 parent
951d6eab84
commit
e583cd6311
13 files changed
+207
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# 복사해서 사용: cp config.local.toml.example config.local.toml
|
||||
# 실제 config.local.toml 은 시크릿(DB 비번·OpenAI 키) 포함이라 커밋하지 않는다(.gitignore: *.toml).
|
||||
# 모든 서버는 APP_ENV=local 로 띄우며 이 파일(config.local.toml)을 읽는다.
|
||||
[WebServerConfig]
|
||||
server_name = "NegosiumAgentServer"
|
||||
port = 9500
|
||||
process_count = 1
|
||||
is_ssl = false
|
||||
is_test = true
|
||||
|
||||
[LogConfig]
|
||||
print_console = true
|
||||
log_level = "debug"
|
||||
|
||||
# negosium_db 를 backend 와 공유. agent 는 learning 스키마에 RL 자산을 둔다.
|
||||
# 도커 실행 시 host 는 docker-compose 가 DB_HOST 환경변수로 override 한다(컨테이너→호스트 DB).
|
||||
# 관리형 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 = "" # 로컬: "" 또는 "disable" / 관리형 DB: "require"|"verify-ca"|"verify-full"
|
||||
|
||||
[AgentConfig]
|
||||
tenants_dir = "tenants"
|
||||
config_cache_ttl_seconds = 300
|
||||
allow_default_tenant = false
|
||||
auto_seed_base = true
|
||||
base_action_space = 9
|
||||
base_seed_episodes = 300
|
||||
|
||||
# LLM(OpenAI). api_key 는 시크릿 — 실제 키를 채우고 커밋 금지.
|
||||
[OpenAIConfig]
|
||||
provider = "openai"
|
||||
api_key = "<OPENAI_API_KEY>"
|
||||
model = "gpt-4o-mini"
|
||||
Reference in new issue
Block a user