Files
item_bank/.env.example
2026-08-01 16:50:55 +08:00

29 lines
822 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制为 .env 并填写实际值
DEBUG=false
# SQLite(生产在 k3s 里指向 PVC 挂载路径)
DATABASE_URL=sqlite+aiosqlite:///./data/item_bank.db
# 认证密钥(生产由 k8s Secret 注入)
# 生成 JWT_SECRET python -c "import secrets; print(secrets.token_urlsafe(48))"
JWT_SECRET=change-me
# 生成 FERNET_KEY python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
FERNET_KEY=change-me
ACCESS_TOKEN_EXPIRE_MINUTES=1440
# CORS 允许的前端来源(逗号分隔)
CORS_ORIGINS=http://localhost:5173
# 对象存储(S3 兼容),存上传图片
S3_ENDPOINT_URL=
S3_REGION=
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_BUCKET=
# 上传限制
MAX_UPLOAD_BYTES=10485760
# OCR 服务(Pix2Text 独立微服务,可选;留空则只走多模态 VLM)
OCR_SERVICE_URL=