mirror of
https://github.com/benbusby/farside.git
synced 2025-04-23 20:28:42 +00:00
Add support for Tent
This commit is contained in:
parent
ea70e144c6
commit
f35f9e639a
3 changed files with 37 additions and 0 deletions
17
.github/workflows/update-instances.yml
vendored
17
.github/workflows/update-instances.yml
vendored
|
@ -279,6 +279,23 @@ jobs:
|
||||||
|
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# Tent update
|
||||||
|
# ==============================================================
|
||||||
|
|
||||||
|
curl -s https://forgejo.sny.sh/sun/Tent/raw/branch/main/instances.json | \
|
||||||
|
jq '[
|
||||||
|
.[] |
|
||||||
|
select(.type == "http") |
|
||||||
|
.url] |
|
||||||
|
sort' > tent-tmp.json
|
||||||
|
|
||||||
|
jq --slurpfile tent tent-tmp.json \
|
||||||
|
'(.[] | select(.type == "tent") )
|
||||||
|
.instances |= $tent[0]' services-full.json > services-tmp.json
|
||||||
|
|
||||||
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# TODO: Update instances for other services
|
# TODO: Update instances for other services
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
|
|
@ -632,5 +632,15 @@
|
||||||
"https://search.zeroish.xyz",
|
"https://search.zeroish.xyz",
|
||||||
"https://search2.ahwx.org"
|
"https://search2.ahwx.org"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tent",
|
||||||
|
"test_url": "/search.php?query=<%=query%>",
|
||||||
|
"fallback": "https://tent.sny.sh",
|
||||||
|
"instances": [
|
||||||
|
"https://tent.bloat.cat",
|
||||||
|
"https://tent.sny.sh",
|
||||||
|
"https://tn.vern.cc"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -585,5 +585,15 @@
|
||||||
"https://search.zeroish.xyz",
|
"https://search.zeroish.xyz",
|
||||||
"https://search2.ahwx.org"
|
"https://search2.ahwx.org"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tent",
|
||||||
|
"test_url": "/search.php?query=<%=query%>",
|
||||||
|
"fallback": "https://tent.sny.sh",
|
||||||
|
"instances": [
|
||||||
|
"https://tent.bloat.cat",
|
||||||
|
"https://tent.sny.sh",
|
||||||
|
"https://tn.vern.cc"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue