chore(config): 添加项目环境变量配置文件
- 新增 .env 文件,包含 Tushare API、钉钉机器人、数据库和阿里云 OSS 的配置 - 修改 .gitignore,取消对 .env 文件的忽略,确保环境变量文件纳入版本管理 - 更新 .gitignore 注释,使文件规则更明确和易读
This commit is contained in:
21
.env
Normal file
21
.env
Normal file
@@ -0,0 +1,21 @@
|
||||
# ETF策略项目 - 环境变量配置
|
||||
|
||||
# ==================== Tushare API (中国A股指数数据) ====================
|
||||
TUSHARE_TOKEN=ae768b520150da8865a38f0d9c480578f695293588c3c684f00077a1
|
||||
|
||||
# 钉钉机器人配置
|
||||
DINGTALK_WEBHOOK=https://oapi.dingtalk.com/robot/send?access_token=fb70c1561d8beba94b4f11568f4bb15e3ae07ccbdc8ac19676434a9d1cd17546
|
||||
DINGTALK_SECRET=SEC1ae7cd2f1a6f9da3611af37da3e7d954c1e8533fc073c6c8cc5e5af3b6e5926b
|
||||
|
||||
# 数据库配置
|
||||
DB_HOST=192.168.0.115
|
||||
DB_PORT=5432
|
||||
DB_NAME=etf_db
|
||||
DB_USER=admin
|
||||
DB_PASS=admin
|
||||
|
||||
# ==================== 阿里云 OSS 配置 ====================
|
||||
OSS_ACCESS_KEY_ID=LTAI5tKD9izrfbQNSVeu4NYd
|
||||
OSS_ACCESS_KEY_SECRET=Vif8FmvEat9qBA4EBbKnXhHvFQokdR
|
||||
OSS_BUCKET_NAME=value-investing
|
||||
OSS_ENDPOINT=https://oss-cn-wulanchabu.aliyuncs.com
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -102,7 +102,7 @@ celerybeat.pid
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
# .env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
@@ -161,7 +161,6 @@ temp/
|
||||
*.temp
|
||||
|
||||
# API keys and secrets
|
||||
.env
|
||||
.env.local
|
||||
config.ini
|
||||
secrets.json
|
||||
|
||||
Reference in New Issue
Block a user