mirror of
https://github.com/benbusby/farside.git
synced 2025-04-25 05:00:02 +00:00
Output available instances and fallback URL to redis
Once a list of available URLs has been determined for a particular service, the list is written as "service -> [list of instances]" to a local redis connection. These can then be used in the greater routing logic to pick a random instance from the list, or use a fallback instance if none are determined to be available.
This commit is contained in:
parent
b0953f0777
commit
4949ae22bb
5 changed files with 70 additions and 29 deletions
20
services.json
Normal file
20
services.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
[
|
||||
{
|
||||
"type": "reddit",
|
||||
"test_url": "/r/popular",
|
||||
"fallback": "https://libredd.it",
|
||||
"instances": [
|
||||
"https://libredd.it",
|
||||
"https://libreddit.spike.codes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "instagram",
|
||||
"test_url": "/taylorswift",
|
||||
"fallback": "https://bibliogram.art/u",
|
||||
"instances": [
|
||||
"https://bibliogram.art/u",
|
||||
"https://bibliogram.snopyta.org/u"
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue