Files
writer-work-flow/.env.example

13 lines
785 B
Plaintext
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.

# Postgres (docker-compose 默认)
DATABASE_URL=postgresql+asyncpg://writer:writer@localhost:5432/writer
# 同步 URLAlembic 迁移用)
DATABASE_URL_SYNC=postgresql+psycopg://writer:writer@localhost:5432/writer
# 应用
APP_ENV=dev
LOG_JSON=false
# 凭据加密密钥Fernet, urlsafe-base64 32B— **必填**API 启动即校验,缺失/非法则拒绝启动。
# ⚠️ 下方为**不可用占位符**,必须替换:`cp .env.example .env` 后用下方命令生成真实 key 填入。
# 切勿把真实 key 提交进版本库;任何曾经泄露过的 key 必须立即轮换(重新加密已存凭据)。
# uv run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CREDENTIAL_ENC_KEY=replace-me-with-generated-fernet-key