1
0
Fork 0
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:
Ben Busby 2021-10-22 17:15:40 -06:00
parent b0953f0777
commit 4949ae22bb
No known key found for this signature in database
GPG key ID: 339B7B7EB5333D14
5 changed files with 70 additions and 29 deletions

20
services.json Normal file
View 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"
]
}
]