首次提交
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# ============================================================
|
||||
# 使用说明:复制本文件为 .env,然后填入真实的配置值
|
||||
# 命令: cp .env.example .env
|
||||
# ⚠️ .env 文件已被 .gitignore 忽略,不会被提交到 Git
|
||||
# ============================================================
|
||||
|
||||
# Flask 会话签名密钥(生产环境必须替换为随机字符串)
|
||||
# 生成方式: python -c "import secrets; print(secrets.token_hex(32))"
|
||||
SECRET_KEY=change-me-to-random-string
|
||||
|
||||
# 数据库连接 URI
|
||||
# 格式: dialect+driver://username:password@host:port/database?params
|
||||
# 默认使用 SQLite 方便本地开发,零配置即可运行
|
||||
DATABASE_URL=sqlite:///app.db
|
||||
|
||||
# MySQL 示例(需安装 PyMySQL):
|
||||
# DATABASE_URL=mysql+pymysql://root:your_password@localhost:3306/mydb?charset=utf8mb4
|
||||
|
||||
# PostgreSQL 示例(需安装 psycopg2-binary):
|
||||
# DATABASE_URL=postgresql+psycopg2://user:your_password@localhost:5432/mydb
|
||||
|
||||
# 数据库连接池大小(仅生产环境生效,根据服务器内存调整)
|
||||
DB_POOL_SIZE=10
|
||||
Reference in New Issue
Block a user