mirror of
https://github.com/benbusby/farside.git
synced 2025-03-15 03:36:33 -04:00

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.
21 lines
475 B
JSON
21 lines
475 B
JSON
[
|
|
{
|
|
"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"
|
|
]
|
|
}
|
|
]
|