Update config.js: it's an example; also, gateways that actually work.

merge-requests/1/head
Michał "rysiek" Woźniak 2021-08-24 16:02:39 +00:00
rodzic f418905594
commit cbdce1a751
1 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -1,10 +1,9 @@
/*
* LibResilient config
*
* This is the config for LibResilient as deployed on the https://resilient.is/ site
* This is an example config for LibResilient. When deploying LibResilient on your website
* you will need to create your own config, using this one as a template.
*
* When deploying LibResilient on your website you will need to create your own config,
* using this one as a template.
*/
// plugins config
@ -16,14 +15,18 @@ self.LibResilientConfig.plugins = {
'alt-fetch':{
// configuring the alternate endpoints plugin to use IPNS gateways
//
// NOTICE: we cannot use gateways that use hash directly in the (sub)domain:
// NOTICE: we cannot use CIDv0 with gateways that use hash directly in the (sub)domain:
// https://github.com/node-fetch/node-fetch/issues/260
// we *can* use CIDv1 with such gateways, and that's suggested:
// https://docs.ipfs.io/how-to/address-ipfs-on-web/#path-gateway
// https://cid.ipfs.io/
endpoints: [
'https://ninetailed.ninja/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // Russia
'https://10.via0.com/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // USA
'https://ipfs.sloppyta.co/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // UK
'https://gateway.temporal.cloud/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // Germany
'https://ipfs.best-practice.se/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/' // Sweden
'https://<CIDv1>.ipns.dweb.link/', // USA
'https://ipfs.kxv.io/ipns/<CIDv0-or-CIDv1>/', // Hong Kong
'https://jorropo.net/ipns/<CIDv0-or-CIDv1>/', // France
'https://gateway.pinata.cloud/ipns/<CIDv0-or-CIDv1>/', // Germany
'https://<CIDv1>.ipns.bluelight.link/' // Singapore
]
},
'gun-ipfs': {