forked from jiaoly/financial_system
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
{
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 8000,
|
|
"fallback_port": 8001
|
|
},
|
|
"logging": {
|
|
"dir": "logs",
|
|
"level": "INFO",
|
|
"info_file": "info.log",
|
|
"error_file": "error.log",
|
|
"max_bytes": 10485760,
|
|
"backup_count": 10,
|
|
"console_enabled": true
|
|
},
|
|
"database": {
|
|
"url": "mysql+pymysql://root:12345678@localhost:3306/financial_system?charset=utf8mb4"
|
|
},
|
|
"storage": {
|
|
"upload_dir": "uploads",
|
|
"output_dir": "outputs",
|
|
"avatar_dir": "static/uploads/avatars"
|
|
},
|
|
"dingtalk": {
|
|
"app_key": "",
|
|
"app_secret": "",
|
|
"base_url": "https://oapi.dingtalk.com",
|
|
"timezone": "Asia/Shanghai"
|
|
},
|
|
"auth": {
|
|
"secret_key": "financial-system-dev-secret",
|
|
"access_token_expire_minutes": 480
|
|
},
|
|
"bootstrap_superuser": {
|
|
"username": "admin",
|
|
"password": "Admin@123456",
|
|
"display_name": "超级管理员"
|
|
},
|
|
"cors": {
|
|
"allowed_origins": [
|
|
"http://127.0.0.1:5173",
|
|
"http://localhost:5173",
|
|
"http://127.0.0.1:5174",
|
|
"http://localhost:5174"
|
|
]
|
|
}
|
|
}
|