feat: 添加 OSS 存储配额功能

- 数据库:添加 oss_storage_quota 字段(0 表示无限制)
- 后端:登录/用户信息返回 OSS 配额
- 后端:管理员可设置用户 OSS 配额
- 后端:上传时检查 OSS 配额限制
- 前端:管理员编辑用户增加 OSS 配额设置
- 前端:用户文件页面显示 OSS 使用量和配额

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 19:25:49 +08:00
parent 4bc147e53c
commit 949653ac00
6 changed files with 138 additions and 8 deletions

14
ecosystem.config.js Normal file
View File

@@ -0,0 +1,14 @@
module.exports = {
apps: [{
name: 'vue-driven-cloud',
script: './backend/server.js',
cwd: '/www/wwwroot/vue-driven-cloud-storage',
env: {
NODE_ENV: 'production',
PORT: 40001,
TRUST_PROXY: '1',
ENFORCE_HTTPS: 'true',
COOKIE_SECURE: 'true'
}
}]
};