Git Product home page Git Product logo

Comments (2)

shankerwangmiao avatar shankerwangmiao commented on May 30, 2024

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,目前由于基础设施升级,该功能不需要了,因此一律返回 falsetunasync.json 由 nginx 转发到 tunasync manager 处理,转发到 tunasync manager 的 /jobs 接口,相关代码在 https://github.com/tuna/tunasync/blob/ef78563b8cef311ca57f4f0b02b40764dc4b091d/manager/server.go#L75https://github.com/tuna/tunasync/blob/ef78563b8cef311ca57f4f0b02b40764dc4b091d/manager/server.go#L130

from mirror-web.

liudonghua123 avatar liudonghua123 commented on May 30, 2024

@shankerwangmiao Thank you very much!

from mirror-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.