# Mac Docker 本机联调模板。复制为 .env 后按需修改。
# 如果使用 ngrok / cloudflared 等公网地址，只需要同步修改 APP_DOMAIN / CADDY_SITE_ADDR / CLAIM_BASE_URL。

# App / Caddy
APP_DOMAIN=localhost
CADDY_SITE_ADDR=http://localhost
TZ=Asia/Shanghai
BACKEND_PORT=3000

# Claim Links
CLAIM_BASE_URL=http://localhost/#/claim

# Database
POSTGRES_DB=order_site
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
DATABASE_URL=postgres://postgres:postgres@postgres:5432/order_site
POSTGRES_PORT=5432

# Logging
LOG_LEVEL=info
# integration-*.log 默认 warn，只记对接异常；排查全量时改为 info
LOG_INTEGRATION_LEVEL=warn
LOG_RETENTION_DAYS=30

# File Storage (MinIO / S3 compatible)
STORAGE_ENDPOINT=http://minio:9000
STORAGE_BUCKET=order-site
STORAGE_ACCESS_KEY_ID=minioadmin
STORAGE_SECRET_ACCESS_KEY=minioadmin
STORAGE_REGION=us-east-1
STORAGE_MAX_UPLOAD_SIZE_MB=10
MINIO_API_PORT=19000
MINIO_CONSOLE_PORT=19001

# Admin
ADMIN_SESSION_SECRET=dev-local-session-secret
ADMIN_DEFAULT_USERS_JSON=[{"username":"admin","password":"dev-admin-123456","role":"admin"},{"username":"operator","password":"dev-operator-123456","role":"operator"}]

# 91Kaquan
KAQUAN91_USER_ID=
KAQUAN91_SECRET=

# 快手行业电子凭证
KUASHOU_INDUSTRY_APP_KEY=
KUASHOU_INDUSTRY_APP_SECRET=
KUASHOU_INDUSTRY_SIGN_SECRET=
KUASHOU_INDUSTRY_MESSAGE_SECRET=

# Cloudtentacles
CLOUDTENTACLES_DEVICE_ID=08bc9d8c-fd15-48ea-bc00-8d754076cafc
CLOUDTENTACLES_DEVICE_TYPE=1

# 接单平台短信验证码（打手注册，开发默认 mock，验证码打印到服务日志）
WORKER_SMS_PROVIDER=mock
