doc: 增加 .env 的注释

This commit is contained in:
zenfun
2025-12-24 14:51:57 +08:00
parent 7f160a8d2a
commit 38d2329991
3 changed files with 44 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
# Control Plane
EZ_API_PORT=8080
EZ_PG_DSN=host=postgres user=postgres password=postgres dbname=ezapi port=5432 sslmode=disable
# 日志库 DSN可选默认不创建独立 log DB留空将使用主库写日志
EZ_LOG_PG_DSN=
EZ_REDIS_ADDR=redis:6379
EZ_REDIS_PASSWORD=
@@ -8,11 +9,13 @@ EZ_REDIS_DB=0
EZ_ADMIN_TOKEN=admin123
EZ_INTERNAL_STATS_TOKEN=internal123
EZ_CORS_ALLOW_ORIGINS=*
# 日志保留策略(单位:天 / 条数)
EZ_LOG_RETENTION_DAYS=30
EZ_LOG_MAX_RECORDS=1000000
# 日志分区off/month/day
EZ_LOG_PARTITIONING=off
# Log DB (docker-compose log-postgres)
# Log DB (docker-compose log-postgres,可选;默认不启用独立日志库)
LOG_POSTGRES_USER=postgres
LOG_POSTGRES_PASSWORD=postgres
LOG_POSTGRES_DB=ezapi_logs