OpenTechFund / bypass-otf_proxy

1 stars 1 forks source link

V1 to V2 of bypass mirrors #17

Closed maxpearl closed 3 years ago

maxpearl commented 3 years ago

Version 2 of the format for bypass-mirrors looks like this:

{
    "main_domain": "domain.com,
    "available_alternatives": [
        {
            "proto": "http",
            "type": "mirror",
            "created_at": "2020-07-08 11:39:07.637811",
            "url": "http://lala.test.com"
        },
        {
            "proto": "tor",
            "type": "eotk",
            "created_at": "2020-07-08 11:43:11.676377",
            "url": "http://lalalslsksjsusheehjdfdjasd.onion"
        },
        {
            "proto": "https",
            "type": "ipfs",
            "created_at": "2020-12-12 11:23:23.23322",
            "url": ""
        }
    ]
}

We need to convert all entries in the bypass-mirror repo to this format, leaving legacy data intact. And the code has to work with this new version as well.

maxpearl commented 3 years ago

Current github repo https://github.com/OpenTechFund/bypass-mirrors/blob/master/mirrorSites.json has been converted to v2