精简环境变量配置

This commit is contained in:
yml2213
2026-05-26 09:48:05 +08:00
parent 8b1904d732
commit 779287f662
6 changed files with 16 additions and 63 deletions
+5 -15
View File
@@ -1,39 +1,29 @@
# Mac Docker development template. Copy to .env for local full-stack testing.
# For public claim links, update APP_BASE_URL and CLAIM_BASE_URL together.
# App
# Mac Docker 本机联调模板。复制为 .env 后按需修改。
# 如果使用 ngrok / cloudflared 等公网地址,只需要同步修改 APP_DOMAIN / CADDY_SITE_ADDR / CLAIM_BASE_URL
# App / Caddy
APP_DOMAIN=localhost
APP_BASE_URL=http://localhost
CADDY_SITE_ADDR=http://localhost
TZ=Asia/Shanghai
BACKEND_PORT=3000
# Claim Links
CLAIM_BASE_URL=http://localhost/#/claim
CLAIM_TOKEN_TTL_HOURS=24
# Database
POSTGRES_DB=order_site
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
DATABASE_URL=postgres://postgres:postgres@postgres:5432/order_site
DATABASE_SSL=false
DATABASE_MAX_CONNECTIONS=10
POSTGRES_PORT=5432
# Data And Logging
DATA_ROOT=/app/data
# Logging
LOG_LEVEL=info
# Admin
ADMIN_SESSION_SECRET=dev-local-session-secret
ADMIN_SESSION_TTL_HOURS=12
ADMIN_DEFAULT_USERS_JSON=[{"username":"admin","password":"dev-admin-123456","role":"admin"},{"username":"operator","password":"dev-operator-123456","role":"operator"}]
# 91Kaquan
NINETYONE_USER_ID=
NINETYONE_SECRET=
NINETYONE_VERSION=1.0
NINETYONE_SHOP_ID=91kaquan
NINETYONE_SHOP_NAME=91卡券
NINETYONE_TIMESTAMP_TOLERANCE_SECONDS=600
NINETYONE_CARDS_ENCODING=aes-256-ecb-base64