Files
writer-work-flow/.env.example
Yaojia Wang 2d77977d8a chore(devops): .env.example 标注 CREDENTIAL_ENC_KEY 必填 + 开发占位 key
配合 P0-2 启动 fail-fast:缺失/非法加密 key 时 API 拒绝启动,故提供可直接用于本地的
Fernet 占位 key + 生产换新值的生成命令,避免"配置缺失 API 起不来"困惑。
2026-06-21 19:33:49 +02:00

12 lines
619 B
Plaintext
Raw 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 启动即校验,缺失/非法则拒绝启动。
# 下方为开发占位 key可直接用于本地生产请换新值
# uv run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CREDENTIAL_ENC_KEY=cnMpG6QQxJejuDLHTe_S-nq2snoKgXCqWFfsctEHB-4=