nex_math/.env.example

19 lines
801 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# backend/database.py 在导入时读取本文件:仓库根 .env 优先,backend/.env 补缺,
# 已存在的进程环境变量不会被覆盖(环境变量 > .env > 代码默认值)。
#
# 本机已经有一份可直接用的 .env(含绝对路径的 DATABASE_URL);
# 这个文件是换机器/重新部署时的模板。
# 数据库连接。留空时后端自动使用仓库根目录下的 data/math.db
# 例:sqlite:////Users/you/nex_math/data/math.db
DATABASE_URL=
# 允许跨域访问的前端地址,逗号分隔
CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
# 可选:仅在初始化(python -m seed)建默认模型通道时使用
OPENAI_API_KEY=
# JWT 签名密钥(生产环境务必改成随机长字符串;改动后所有人需重新登录)
JWT_SECRET=