Comments (2)
Hi,
本 Repo 是镜像站前端网页,是纯静态的。它与后端通信的接口有 3 个,是 JSON 文件。分别是 /static/tunasync.json
用于获取同步状态;/static/tunet.json
用于判断用户是否在清华校内;/static/status/isoinfo.json
用于获取 ISO 镜像的信息,供“获取下载链接”按钮使用。
其中,isoinfo.json
是静态文件,由
https://github.com/tuna/mirror-web/blob/master/geninfo/genisolist.py 定时生成;tunet.json
是直接由 nginx 判断返回 true
或者 false
,目前由于基础设施升级,该功能不需要了,因此一律返回 false
。tunasync.json
由 nginx 转发到 tunasync manager 处理,转发到 tunasync manager 的 /jobs
接口,相关代码在 https://github.com/tuna/tunasync/blob/ef78563b8cef311ca57f4f0b02b40764dc4b091d/manager/server.go#L75 和 https://github.com/tuna/tunasync/blob/ef78563b8cef311ca57f4f0b02b40764dc4b091d/manager/server.go#L130
from mirror-web.
@shankerwangmiao Thank you very much!
from mirror-web.
Related Issues (20)
- Lua script for the reverse proxy to add additional header tags. HOT 2
- 镜像列表始终显示tuna HOT 2
- fatal: unable to access 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.tuna.tsinghua.edu.cn:443
- [Bug Report] footerwrap在页面中不恰当位置显示 HOT 2
- Suggestion: mention `pushy_https` in the help of CPAN mirror HOT 4
- AOSP 帮助文档中 wget 下载在校外会 404 HOT 2
- router bug HOT 1
- The mirror-web cannot display the mirror page,It may be because of nginx configuration HOT 2
- debian security源地址仍然写的原来的地址 HOT 1
- mirror-web怎样和tunasync后端对接? HOT 4
- 建议支持‘/’键聚焦搜索框
- 网站服务状态页面png图片,采用什么监控软件,及图片是如何生产 HOT 5
- 修改debian镜像的帮助文档需要更新 HOT 3
- cdn.jsdelivr.net无法访问
- Add RSS support for news. HOT 2
- 子目录的url与status该如何显示 HOT 16
- disk.json与isoinfo.json的数据不传入 HOT 6
- isoinfo.json写入数据后浏览器报错 HOT 3
- 关于子目录样式调用问题 HOT 2
- 建议提供适用于Docker-Compose配置文件 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirror-web.