dy-dashboard/config.py
2026-10-28 11:14:17 +08:00

21 lines
523 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 数据库配置
DB_CONFIG = {
"host": "127.0.0.1",
"port": 3306,
"user": "dy_app",
"password": "dy_data_2026",
"database": "dy_data",
"charset": "utf8mb4"
}
# Flask 配置
SECRET_KEY = "dy-dashboard-secret-key-2026"
APP_PORT = 18888
APP_HOST = "0.0.0.0" # 允许局域网访问
# 知识库路径(开发/生产环境各自修改)
VAULT_PATH = "/opt/dy-dashboard/vault"
# 数据概览库存计算日期(None 表示自动使用库存表中的最新日期)
DASHBOARD_INVENTORY_DATE = None