增加env

This commit is contained in:
dekun
2026-05-12 15:38:27 +08:00
parent 895e1bed0f
commit 6280480e48
7 changed files with 170 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
# 复制本文件为 .env 后按需修改(.env 勿提交到 Git)
# 与 app.py 同目录;程序启动时自动加载。
# 必填(长期运行):随机字符串,用于会话与 CSRF。可执行: openssl rand -hex 32
# NAV_SECRET_KEY=
# 数据库(默认 SQLite 文件在当前工作目录)
# NAV_DATABASE_URL=sqlite:///nav_local.db
# 仅 python app.py 直连启动时生效
# NAV_HOST=0.0.0.0
# NAV_PORT=5000
# 调试:1 开启,勿在生产长期开启
# NAV_DEBUG=0