mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2025-12-08 04:45:43 +09:00
feat(store): integrate postgres with ent for domain management
This commit is contained in:
23
.env.example
23
.env.example
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user