Commit Graph

636 Commits

Author SHA1 Message Date
Lan 68464b3a9a feat: add migration for filecodes table and update size field to BigInt 2026-02-27 23:38:27 +08:00
Lan db2c94fd19 feat: add configuration management with async settings refresh and middleware integration 2026-02-13 23:45:44 +08:00
Lan 88c262a6c3 fix: implement async database startup lock and refactor db configuration 2026-02-13 23:30:48 +08:00
Lan f5ee00792b Merge pull request #460 from vastsa/dev
feat: 优化代码结构
2026-01-27 10:52:06 +08:00
Lan 7f6aa3a14c chore: update Dockerfile to set HOST to 0.0.0.0 and reduce WORKERS to 1 2026-01-27 10:37:17 +08:00
Lan 0109099167 chore: reduce number of workers in Dockerfile from 4 to 2 2026-01-27 10:05:33 +08:00
Lan 24daf964a3 revert: dockerfile 2026-01-26 12:43:53 +08:00
Lan db78d7596a fix: reduce default number of workers in Dockerfile to improve resource management 2026-01-26 12:14:11 +08:00
Lan f4e7446de6 refactor: streamline admin authorization logic and improve token handling 2026-01-25 23:40:15 +08:00
Lan fb46366ed7 perf: optimize memory usage for large file uploads 2026-01-25 21:28:16 +08:00
Lan d34f98f7c8 ci: add dev branch support for Docker image builds 2026-01-25 21:27:59 +08:00
Lan cbcc8d2cb9 feat: enhance file retrieval by using Pydantic models for serialization 2026-01-25 20:53:04 +08:00
Lan c49043b6e0 docs: update README files with improved formatting and additional features 2026-01-25 14:12:20 +08:00
Lan f3a12820bf fix: make detail field optional in APIResponse model 2026-01-24 15:28:17 +08:00
Lan fc22b80427 feat: update Docker configuration and add environment variable documentation 2026-01-24 11:58:23 +08:00
Lan 79a4a9721d fix: return a dictionary from get_config method in ConfigService 2026-01-24 11:28:32 +08:00
Lan 753353e857 feat: update Dockerfile to clone frontend themes into build directory and add legacy peer dependencies 2026-01-24 11:03:33 +08:00
Lan 8192c1215c feat: update Dockerfile to use Node.js 20 and add build dependencies 2026-01-24 10:57:32 +08:00
Lan 9dd5fa84b9 feat: add configuration documentation for OneDrive and OpenDAL storage integration 2026-01-24 10:53:48 +08:00
Lan fbe2fe8e8d Merge pull request #454 from jerryliang122/proxy-download
优化启用下载代理
2026-01-24 10:44:48 +08:00
Lan 956effc384 feat: update Dockerfile for multi-stage build and add frontend themes; update dependencies in requirements.txt 2026-01-24 10:31:43 +08:00
jerryliang d157c0779f fix: 仅在获取到文件大小时才设置 Content-Length 头 2026-01-16 17:55:12 +08:00
jerryliang 19e1309642 perf: 复用ClientSession提升文件下载性能 2026-01-16 17:33:22 +08:00
jerryliang c3c1f391f4 fix: 使用标准方法编码下载文件名 2026-01-16 17:18:14 +08:00
jerryliang f692d83ad4 feat: 优化文件下载响应中的Content-Length获取逻辑
为所有存储后端添加文件大小获取逻辑,优先从实际存储系统获取文件大小,失败时回退到数据库记录的大小
2026-01-16 16:53:39 +08:00
jerryliang e6d4b66343 feat: 在所有存储实现中添加Content-Length响应头 2026-01-16 16:44:06 +08:00
jerryliang 1313934289 feat: 为所有存储后端实现流式文件下载
将文件下载方式从全量读取改为流式传输,减少内存占用并提高大文件下载性能
支持S3、OneDrive、OpenDAL和WebDAV存储后端的流式下载
添加错误处理和HTTP异常捕获
2026-01-16 15:45:12 +08:00
Lan f94f819fc1 Merge remote-tracking branch 'origin/master' 2026-01-11 14:26:02 +08:00
Lan 0a701e5165 chore: update dependencies in requirements.txt 2026-01-11 14:25:53 +08:00
Lan 877e952b67 feat: https://github.com/vastsa/FileCodeBox/issues/442 密码进行hash存储 2026-01-07 20:36:59 +08:00
Lan 78f4bbb0c8 feat: https://github.com/vastsa/FileCodeBox/issues/386 https://github.com/vastsa/FileCodeBox/issues/380 2026-01-07 20:28:06 +08:00
Lan 85074cfec8 fix: https://github.com/vastsa/FileCodeBox/issues/407 2026-01-07 20:04:44 +08:00
Lan 830dd65f6a fix: https://github.com/vastsa/FileCodeBox/issues/362 2026-01-07 19:50:02 +08:00
Lan ebbf08f06e fix: https://github.com/vastsa/FileCodeBox/issues/449 2026-01-01 12:46:10 +08:00
Lan d827fe5b04 fix: https://github.com/vastsa/FileCodeBox/issues/444 2025-12-31 03:45:52 +08:00
Lan 182269e315 fix: https://github.com/vastsa/FileCodeBox/issues/446 2025-12-31 03:36:14 +08:00
Lan a487be2412 feat: 支持S3预签名上传 2025-12-31 03:25:09 +08:00
Lan e67c39b672 feat: 支持S3 预签名上传 2025-12-31 03:24:25 +08:00
Lan 69cb9ba2e4 revert: 重新使用0.0.0.0 后续新增后台配置,延长后台时间 2025-12-19 10:17:37 +08:00
Lan 4e8d75946b ci(docker): Optimize Docker build workflow and configuration
- Add environment variable for Docker registry image to reduce duplication
- Set job timeout to 60 minutes to prevent hanging builds
- Update docker/build-push-action from v5 to v6 for latest features
- Configure Docker Buildx with moby/buildkit:latest and host network
- Disable provenance attestation to improve build performance
- Replace hardcoded registry image reference with env variable for maintainability
2025-12-18 23:19:37 +08:00
Lan 53183138b4 feat(config): Add configurable workers and host settings
- Add "workers" configuration option to DEFAULT_CONFIG with default value of 1
- Add "host" configuration option to DEFAULT_CONFIG with default value of "::"
- Update uvicorn.run() to use settings.host and settings.workers instead of hardcoded values
- Reorganize imports in main.py for better readability and consistency
- Add blank line after time import in core/utils.py for PEP 8 compliance
- Allow dynamic configuration of server workers and binding host address
2025-12-18 23:08:40 +08:00
Lan 9a29c998a8 feat: 新增案例站点 2025-12-11 23:15:43 +08:00
Lan b054dab39b Merge remote-tracking branch 'origin/master' 2025-12-11 23:08:37 +08:00
Lan 7e7ee1d812 feat: 新增优秀案例投稿页面 2025-12-11 23:08:00 +08:00
Lan ae58947571 fix: 兼容后台修改永久取件 2025-12-01 21:21:37 +08:00
Lan 46aef93125 fix: 后台无法修改永久取件码的信息 2025-12-01 19:09:23 +08:00
Lan 943dae057e feat: 更新2024主题 2025-12-01 15:35:14 +08:00
Lan a649f54c5b fix: 自动清理过期的chunk 2025-12-01 15:24:47 +08:00
Lan 3ff4e9b6cf feat: s3适配切片上传 2025-12-01 15:13:33 +08:00
Lan a3f1fd6a4c feat: 利用AI更新文档 2025-12-01 14:10:06 +08:00