16 lines
579 B
Python
16 lines
579 B
Python
# -*- coding: utf-8 -*-
|
|
"""数据库连接配置 —— 供 industry-deep Skill 查询脚本使用。
|
|
|
|
优先读取环境变量 INDUSTRY_DEEP_DB_*,否则使用默认值。
|
|
"""
|
|
import os
|
|
|
|
DB_CONFIG = {
|
|
"host": os.environ.get("INDUSTRY_DEEP_DB_HOST", "192.168.1.10"),
|
|
"port": int(os.environ.get("INDUSTRY_DEEP_DB_PORT", "3306")),
|
|
"user": os.environ.get("INDUSTRY_DEEP_DB_USER", "sunjiewei"),
|
|
"password": os.environ.get("INDUSTRY_DEEP_DB_PASS", "sunjiewei@vf"),
|
|
"database": os.environ.get("INDUSTRY_DEEP_DB_NAME", "industry_deep"),
|
|
"charset": "utf8mb4",
|
|
}
|