diff options
| author | Ben Busby <noreply+git@benbusby.com> | 2021-10-22 17:15:40 -0600 |
|---|---|---|
| committer | Ben Busby <noreply+git@benbusby.com> | 2021-10-22 17:15:40 -0600 |
| commit | 4949ae22bb2fd1b81cdfbbe21468015fb229b553 (patch) | |
| tree | eaad6f87b43a1b741697cb350a19dad65e384444 /services.json | |
| parent | b0953f07779a4fc6fdfe650a872c4e39251db3ee (diff) | |
| download | farside-4949ae22bb2fd1b81cdfbbe21468015fb229b553.tar.gz | |
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.
Diffstat (limited to 'services.json')
| -rw-r--r-- | services.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/services.json b/services.json new file mode 100644 index 0000000..22a86d5 --- /dev/null +++ b/services.json @@ -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" + ] + } +] |
