Add configurable upstream sync proxy and schedule settings

This commit is contained in:
2026-03-19 18:05:22 +08:00
parent 1b420cd492
commit a64725d60c
8 changed files with 480 additions and 5 deletions

View File

@@ -14,6 +14,12 @@ docker compose up --build -d
docker compose -f docker-compose.yml -f docker-compose.test.yml up --build -d
```
如需自定义 MySQL 连接,先复制环境模板:
```bash
cp .env.example .env
```
页面入口:
- `http://127.0.0.1:8123/web/device_query.html`
@@ -37,7 +43,10 @@ web/ 页面与静态资源
- `docker-compose.yml``Dockerfile``tools/` 都位于项目主目录
- 默认主配置面向远程 MySQL
- `docker-compose.test.yml` 中的 MySQL 仅用于本地测试
- Compose 会优先读取 shell 环境变量和项目根目录 `.env`,再回退到 `docker-compose.yml` 默认值
- 上游原始 git 同步、索引构建和 MySQL 刷新都在容器内完成
- 项目内置“每日自动同步”调度,不依赖 GitHub Actions时间点可在数据管理页设置也可用 `.env` 覆盖默认值
- 如需 GitHub 加速,可配置 `GITHUB_PROXY_PREFIX`,也可在数据管理页直接修改
更多说明见: