Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove reverse proxy in frontend parser #5

Open
ZenithalHourlyRate opened this issue Feb 24, 2021 · 2 comments
Open

Remove reverse proxy in frontend parser #5

ZenithalHourlyRate opened this issue Feb 24, 2021 · 2 comments

Comments

@ZenithalHourlyRate
Copy link
Contributor

Currently some sites do not have CORS for MirrorZ, so a workaround was provided by third parties using reverse proxy.

$ grep r.nichi.co * | cut -d':' -f1
cqu.js
hust.js
lzu.js
neusoft.js
nju-old.js
xjtu.js

Note: nju-old and xjtu is not deployed. The former has allowed CORS for mirrorz, see nju.js for more info; the latter one is not accessible from reverse proxy, so a static json is used instead, see /static/tmp/xjtu.json for more info.

However, for some reason this reverse proxy no longer provides service. We think this kind of workaround should only be temporary hence an issue should be set up here.

Currently parsers of cqu and neusoft uses json provided by corresponding mirror site while lzu and hust parses the html. CORS of them should be set on the mirrors. This relates to cqumirror/feedback#27 and LZUOSS/Mirror#13; neusoft and hust do not have an issue tracker on GitHub.

ZenithalHourlyRate referenced this issue in mirrorz-org/mirrorz Feb 25, 2021
As upstream has opened CORS for their data.
This relates to #31
Hagb referenced this issue in Hagb/mirrorz Feb 25, 2021
CORS of these two files has been enabled.
Relates to #31,
Hagb referenced this issue in Hagb/mirrorz Feb 25, 2021
CORS of these two files has been enabled.
Relates to #31.
@ZenithalHourlyRate ZenithalHourlyRate transferred this issue from mirrorz-org/mirrorz Jan 25, 2022
@ZenithalHourlyRate
Copy link
Contributor Author

Current status:

$ grep -r zenithal
xtom-jp.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.jp/",
xtom-ee.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.ee/",
nyist.js:  const html = await (await fetch("https://r.zenithal.workers.dev/https://mirror.nyist.edu.cn/")).text();
xtom.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.com/",
xtom-nl.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.nl/",
lzu.js:  const html = await (await fetch("https://r.zenithal.workers.dev/http://mirror.lzu.edu.cn/")).text();
xtom-hk.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.com.hk/",
xtom-de.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.de/",
scau.js:  const html = await (await fetch("https://r.zenithal.workers.dev/https://mirrors.scau.edu.cn/result")).text();

ZenithalHourlyRate added a commit that referenced this issue Feb 3, 2022
zju now use mirrorz.json API
Related to #5
ZenithalHourlyRate added a commit that referenced this issue Mar 9, 2022
scau now provides mirrorz.d.json on their own
Ref to #5
ZenithalHourlyRate added a commit to mirrorz-org/mirrorz-config that referenced this issue Apr 14, 2022
ZenithalHourlyRate added a commit that referenced this issue Apr 14, 2022
As nyist provides its own mirrorz.json now
Ref to #5
ZenithalHourlyRate added a commit that referenced this issue Jul 15, 2022
Ref to #5
@ZenithalHourlyRate
Copy link
Contributor Author

Current status:

$ grep -r zenithal
xtom-nl.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.nl/",
xtom-ee.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.ee/",
xtom-de.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.de/",
xtom-jp.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.jp/",
xtom.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.com/",
xtom-hk.js:    "https://r.zenithal.workers.dev/https://mirrors.xtom.com.hk/",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant