fix(backend): PostgreSQL sslmode 를 env 로(기본 prefer) — 고객사 내부 PG 가 SSL 미지원

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lee-hyeon-cheol
2026-09-21 14:01:29 +09:00
co-authored by Claude Fable 5.1
parent 9fc93ffbce
commit fa738a7a2c
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -146,7 +146,8 @@ if _pg_host:
# ASGI 스레드마다 연결 눌러앉는 것 방지 — 요청 끝나면 바로 반납
"CONN_MAX_AGE": 0,
"OPTIONS": {
"sslmode": "require",
# 고객사 내부 PostgreSQL 은 SSL 없음(server does not support SSL). 기본 prefer = 되면 쓰고 아니면 평문
"sslmode": _env("DB_SSLMODE", "prefer"),
"connect_timeout": 10,
"options": f"-c search_path={_schema}",
},