feat(store): integrate postgres with ent for domain management

This commit is contained in:
dalbodeule
2025-11-26 18:59:18 +09:00
parent 1d6888a45b
commit df1b4758da
24 changed files with 4399 additions and 3 deletions

View File

@@ -3,6 +3,12 @@
# 이 파일을 복사해서 `.env` 로 이름을 바꾼 뒤 값을 채워서 사용하세요.
# internal/config 패키지의 LoadServerConfigFromEnv / LoadClientConfigFromEnv 가
# .env를 먼저 읽고, 이후 환경변수로부터 설정을 구성합니다.
#
# Server-side PostgreSQL connection for admin/domain management uses:
# HOP_DB_DSN
# HOP_DB_MAX_OPEN_CONNS
# HOP_DB_MAX_IDLE_CONNS
# HOP_DB_CONN_MAX_LIFETIME
# ---- Logging / Loki ----
@@ -49,6 +55,23 @@ HOP_SERVER_PROXY_DOMAINS=api.example.com,edge.example.com
# 1. self signed localhost cert 사용여부 (debug: true -> 사용)
HOP_SERVER_DEBUG=true
# ---- PostgreSQL (server-side) ----
#
# PostgreSQL DSN (required), e.g.:
# postgres://user:pass@localhost:5432/hopgate?sslmode=disable
HOP_DB_DSN=postgres://user:pass@localhost:5432/hopgate?sslmode=disable
# Maximum number of open connections (optional, default: 10)
#HOP_DB_MAX_OPEN_CONNS=10
# Maximum number of idle connections (optional, default: 5)
#HOP_DB_MAX_IDLE_CONNS=5
# Connection max lifetime (optional, default: 30m)
# e.g. "30m", "1h"
#HOP_DB_CONN_MAX_LIFETIME=30m
# ---- Client settings ----
# DTLS 서버 주소 (host:port)