security: 安全规范 + 敏感数据脱敏

- CLAUDE.md 新增安全规范章节(禁止提交 / 必须提供 .env.example)
- finance/config/settings.py 硬编码密码移除
- djapi/api/video/audioRead.py API Key 替换为占位符
- 新增 finance/.env.example 示例配置
- .gitignore 解除 .env.example 排除

Co-Authored-By: Simon <simon@doorcome.cn>
This commit is contained in:
2026-06-17 21:20:07 +08:00
co-authored by Simon
parent bb1a9c4470
commit 22ce3a6aea
5 changed files with 494 additions and 439 deletions
+27
View File
@@ -0,0 +1,27 @@
# ── Qwen API 配置(DashScope) ─────────────────────────────
# API Key 获取:https://dashscope.console.aliyun.com/apiKey
QWEN_API_KEY=sk-your-key-here
QWEN_MODEL=qwen-turbo
# ── 本地 Qwen 部署(可选,优先级高于 API) ──────────────────
# QWEN_LOCAL_BASE_URL=http://localhost:11434/v1
# QWEN_LOCAL_MODEL=qwen2.5:7b
# ── Tushare 数据源 ─────────────────────────────────────────
# Token 获取:https://tushare.pro 注册后在 "个人主页→接口TOKEN" 复制
TUSHARE_TOKEN=your_token_here
# ── 数据库 ──────────────────────────────────────────────────
MAC_DB_HOST=127.0.0.1
MAC_DB_PORT=13306
MAC_DB_USER=myquant
MAC_DB_PASSWORD=your_password_here
MAC_DB_NAME=myquant
# ── 情绪分析范围 ────────────────────────────────────────────
SENTIMENT_SCOPE_TYPE=index
SENTIMENT_SCOPE_INDEXES=000300,000905
SENTIMENT_MAX_NEWS_PER_STOCK=30
# ── MCP 新闻服务(可选) ────────────────────────────────────
# NEWS_MCP_URL=http://192.168.1.160:3333/mcp