mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 10:58:42 +00:00
Use LibreY instances for LibreX requests
LibreX is maybe abandoned and has been replaced by LibreY. Requests to LibreX are now forwarded to LibreY instances to avoid issues.
This commit is contained in:
parent
30d3da8593
commit
28dac7e740
1 changed files with 5 additions and 15 deletions
20
.github/workflows/update-instances.yml
vendored
20
.github/workflows/update-instances.yml
vendored
|
@ -242,31 +242,21 @@ jobs:
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# librex update
|
# LibreX/LibreY update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
|
curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
.instances |
|
.instances |
|
||||||
.[] |
|
.[] |
|
||||||
select(.librey|not) |
|
|
||||||
.clearnet] |
|
.clearnet] |
|
||||||
sort' > librex-tmp.json
|
sort' > librey-tmp.json
|
||||||
jq --slurpfile librex librex-tmp.json \
|
|
||||||
|
jq --slurpfile librex librey-tmp.json \
|
||||||
'( .[] | select(.type == "librex") )
|
'( .[] | select(.type == "librex") )
|
||||||
.instances |= $librex[0]' services-full.json > services-tmp.json
|
.instances |= $librex[0]' services-full.json > services-tmp.json
|
||||||
|
|
||||||
apply_update
|
mv services-tmp.json services-full.json
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# librey update
|
|
||||||
# ==============================================================
|
|
||||||
curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
|
|
||||||
jq '[
|
|
||||||
.instances |
|
|
||||||
.[] |
|
|
||||||
select(.librey == true) |
|
|
||||||
.clearnet] |
|
|
||||||
sort' > librey-tmp.json
|
|
||||||
jq --slurpfile librey librey-tmp.json \
|
jq --slurpfile librey librey-tmp.json \
|
||||||
'( .[] | select(.type == "librey") )
|
'( .[] | select(.type == "librey") )
|
||||||
.instances |= $librey[0]' services-full.json > services-tmp.json
|
.instances |= $librey[0]' services-full.json > services-tmp.json
|
||||||
|
|
Loading…
Add table
Reference in a new issue